# Send Jules API to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "jules-api",
    "name": "Jules API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/arthbhalodiya/jules-api",
    "canonicalUrl": "https://clawhub.ai/arthbhalodiya/jules-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/jules-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jules-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "scripts/jules.sh",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "jules-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T14:55:24.623Z",
      "expiresAt": "2026-05-11T14:55:24.623Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jules-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jules-api",
        "contentDisposition": "attachment; filename=\"jules-api-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "jules-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/jules-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/jules-api",
    "downloadUrl": "https://openagent3.xyz/downloads/jules-api",
    "agentUrl": "https://openagent3.xyz/skills/jules-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/jules-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/jules-api/agent.md"
  }
}
```
## Documentation

### Jules API Skill

Interact with the Google Jules AI coding agent via its REST API. Jules can autonomously execute coding tasks on your GitHub repositories — writing code, fixing bugs, adding tests, and creating pull requests.

Base URL: https://jules.googleapis.com/v1alpha
Auth: Pass your API key via the x-goog-api-key header. Get one at jules.google.com/settings.

### List Sources (Connected Repositories)

Discover which GitHub repos are connected to your Jules account:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sources?pageSize=30"

With pagination:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sources?pageSize=10&pageToken=PAGE_TOKEN"

Filter specific sources:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sources?filter=name%3Dsources%2Fgithub-owner-repo"

### Get a Source

Get details and branches for a specific repo:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sources/SOURCE_ID"

Example: sources/github-myorg-myrepo — replace with your actual source ID from List Sources.

### Create a Session (Start a Coding Task)

Create a new Jules session to execute a coding task on a repo:

curl -s -X POST \\
  -H "x-goog-api-key: $JULES_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "prompt": "TASK_DESCRIPTION",
    "title": "OPTIONAL_TITLE",
    "sourceContext": {
      "source": "sources/github-OWNER-REPO",
      "githubRepoContext": {
        "startingBranch": "main"
      }
    },
    "requirePlanApproval": true
  }' \\
  "https://jules.googleapis.com/v1alpha/sessions"

### Parameters

ParameterRequiredDescriptionpromptYesThe task description for Jules to executetitleNoOptional title (auto-generated if omitted)sourceContext.sourceYesSource resource name (e.g. sources/github-owner-repo)sourceContext.githubRepoContext.startingBranchYesBranch to start from (e.g. main, develop)requirePlanApprovalNoIf true, plans need explicit approval before executionautomationModeNoSet to AUTO_CREATE_PR to auto-create PRs when done

### Auto-approve + Auto-PR example

curl -s -X POST \\
  -H "x-goog-api-key: $JULES_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "prompt": "Add comprehensive unit tests for the auth module",
    "sourceContext": {
      "source": "sources/github-myorg-myrepo",
      "githubRepoContext": { "startingBranch": "main" }
    },
    "automationMode": "AUTO_CREATE_PR"
  }' \\
  "https://jules.googleapis.com/v1alpha/sessions"

### List Sessions

List all your Jules sessions:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions?pageSize=10"

Paginate with pageToken:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions?pageSize=10&pageToken=NEXT_PAGE_TOKEN"

### Get a Session

Retrieve a single session by ID (includes outputs like PRs if completed):

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID"

### Session States

StateMeaningQUEUEDWaiting to be processedPLANNINGJules is analyzing and creating a planAWAITING_PLAN_APPROVALPlan ready, waiting for user approvalAWAITING_USER_FEEDBACKJules needs additional inputIN_PROGRESSJules is actively workingPAUSEDSession is pausedCOMPLETEDTask completed successfullyFAILEDTask failed to complete

### Approve a Plan

When a session is in AWAITING_PLAN_APPROVAL state, approve the plan:

curl -s -X POST \\
  -H "x-goog-api-key: $JULES_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{}' \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID:approvePlan"

### Send a Message

Send feedback, answer questions, or give additional instructions to an active session:

curl -s -X POST \\
  -H "x-goog-api-key: $JULES_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "prompt": "YOUR_MESSAGE_HERE"
  }' \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID:sendMessage"

Use this when session state is AWAITING_USER_FEEDBACK or to provide additional guidance during IN_PROGRESS.

### List Activities (Monitor Progress)

Get all events/progress for a session:

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID/activities?pageSize=50"

Get activities after a specific timestamp (for polling):

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID/activities?createTime=2026-01-17T00:03:53Z"

### Activity Types

Activities will contain exactly one of these event fields:

EventDescriptionplanGeneratedJules created a plan (contains plan.steps[])planApprovedA plan was approveduserMessagedUser sent a messageagentMessagedJules sent a messageprogressUpdatedStatus update during executionsessionCompletedSession finished successfullysessionFailedSession encountered an error (contains reason)

### Artifacts

Activities may include artifacts:

ChangeSet: Code changes with gitPatch (unified diff, base commit, suggested commit message)
BashOutput: Command output with command, output, exitCode
Media: Binary output with mimeType and base64 data

### Get a Single Activity

curl -s -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID/activities/ACTIVITY_ID"

### Delete a Session

curl -s -X DELETE \\
  -H "x-goog-api-key: $JULES_API_KEY" \\
  "https://jules.googleapis.com/v1alpha/sessions/SESSION_ID"

### Typical Workflow

List sources to find the repo resource name
Create a session with a prompt describing the task
Poll the session (Get Session) to track state changes
List activities to monitor progress and read Jules' messages
If requirePlanApproval was set, approve the plan when state is AWAITING_PLAN_APPROVAL
If state is AWAITING_USER_FEEDBACK, send a message with your response
When COMPLETED, get the session to find the output PR URL

### Error Handling

CodeMeaning200Success400Bad request (invalid parameters)401Unauthorized (invalid/missing API key)403Forbidden (insufficient permissions)404Not found429Rate limited500Server error

Error responses return:

{
  "error": {
    "code": 400,
    "message": "Invalid session ID format",
    "status": "INVALID_ARGUMENT"
  }
}

### Notes

Get your API key from jules.google.com/settings
Store it as the JULES_API_KEY environment variable
Sources (repos) are connected via the Jules web UI at jules.google — the API is read-only for sources
Session resource names follow the pattern sessions/{sessionId}
Activity resource names follow sessions/{sessionId}/activities/{activityId}
All list endpoints support pageSize (1-100) and pageToken for pagination
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: arthbhalodiya
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T14:55:24.623Z
- Expires at: 2026-05-11T14:55:24.623Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/jules-api)
- [Send to Agent page](https://openagent3.xyz/skills/jules-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/jules-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/jules-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/jules-api)