返回顶部
j

jules Jules AI会话管理

Create and manage Google Jules AI coding sessions via the Jules REST API. Start tasks, monitor progress, approve plans, send messages, list sources/repos, and retrieve session activities/artifacts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
795
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

jules

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:

CODEBLOCK0

With pagination:

CODEBLOCK1

Filter specific sources:

CODEBLOCK2

Get a Source

Get details and branches for a specific repo:

CODEBLOCK3

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:

CODEBLOCK4

Parameters

ParameterRequiredDescription
INLINECODE3YesThe task description for Jules to execute
INLINECODE4
No | Optional title (auto-generated if omitted) | | sourceContext.source | Yes | Source resource name (e.g. sources/github-owner-repo) | | sourceContext.githubRepoContext.startingBranch | Yes | Branch to start from (e.g. main, develop) | | requirePlanApproval | No | If true, plans need explicit approval before execution | | automationMode | No | Set to AUTO_CREATE_PR to auto-create PRs when done |

Auto-approve + Auto-PR example

CODEBLOCK5



List Sessions

List all your Jules sessions:

CODEBLOCK6

Paginate with pageToken:

CODEBLOCK7

Get a Session

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

CODEBLOCK8

Session States

StateMeaning
INLINECODE15Waiting to be processed
INLINECODE16
Jules is analyzing and creating a plan | | AWAITING_PLAN_APPROVAL | Plan ready, waiting for user approval | | AWAITING_USER_FEEDBACK | Jules needs additional input | | IN_PROGRESS | Jules is actively working | | PAUSED | Session is paused | | COMPLETED | Task completed successfully | | FAILED | Task failed to complete |

Approve a Plan

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

CODEBLOCK9

Send a Message

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

CODEBLOCK10

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:

CODEBLOCK11

Get activities after a specific timestamp (for polling):

CODEBLOCK12

Activity Types

Activities will contain exactly one of these event fields:

EventDescription
INLINECODE26Jules created a plan (contains plan.steps[])
INLINECODE28
A plan was approved |
| userMessaged | User sent a message |
| agentMessaged | Jules sent a message |
| progressUpdated | Status update during execution |
| sessionCompleted | Session finished successfully |
| sessionFailed | Session 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, INLINECODE38
  • Media: Binary output with mimeType and base64 INLINECODE40

Get a Single Activity

CODEBLOCK13



Delete a Session

CODEBLOCK14



Typical Workflow

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

Error Handling

CodeMeaning
200Success
400
Bad request (invalid parameters) | | 401 | Unauthorized (invalid/missing API key) | | 403 | Forbidden (insufficient permissions) | | 404 | Not found | | 429 | Rate limited | | 500 | Server error |

Error responses return:

CODEBLOCK15

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 INLINECODE46
  • Activity resource names follow INLINECODE47
  • All list endpoints support pageSize (1-100) and pageToken for pagination

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jules-api-1776420061 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 jules-api-1776420061 技能

通过命令行安装

skillhub install jules-api-1776420061

下载

⬇ 下载 jules v1.0.0(免费)

文件大小: 5.49 KB | 发布时间: 2026-4-17 20:06

v1.0.0 最新 2026-4-17 20:06
Initial release of the Jules API skill:

- Create and manage Google Jules AI coding sessions via the Jules REST API.
- Start coding tasks, monitor session progress, and retrieve session activities and artifacts.
- Approve plans, send messages to sessions, and interactively guide coding tasks.
- List, query, and fetch details for connected GitHub sources (repositories).
- Comprehensive documentation for all endpoints, required parameters, and usage examples.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部