jules-dispatch
v1.3.2Batch-dispatch coding tasks to Google Jules: 50 parallel sessions, plan approval, PR collection.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
jules_list_sources
List all GitHub repositories connected to Jules. Use this to discover available source identifiers before dispatching or planning Jules work. Returns: { success: true, data: { sources: [{ id, name, githubRepo? }] } } See also: jules_dispatch_task (uses source identifiers), jules_dispatch_batch, jules_plan_tasks
jules_dispatch_task
[DEPRECATED: Use jules_dispatch instead.] Dispatch a single self-contained task to Jules and create one session. Use this when an AI agent has one concrete coding task and can rely on explicit source/branch values or configured defaults. Returns: { success: true, data: { taskFile, taskTitle, sessionId, sessionUrl, title, status, error? } } See also: jules_list_sources (find source identifiers), jules_get_session, jules_wait_for_completion, jules_dispatch_batch
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Detailed instructions for the Jules agent |
title * | string | Human-readable task title |
autoMode | string | |
branch | string | Starting branch (overrides .env default) |
requirePlanApproval | boolean | |
source | string | e.g. sources/github/owner/repo (overrides .env default) |
jules_dispatch_batch
[DEPRECATED: Use jules_dispatch instead.] Dispatch multiple independent tasks to Jules through a continuously replenished worker pool with optional global launch pacing. Use this when an AI agent has decomposed work into separate task definitions or has a YAML/JSON task payload ready to fan out. Returns: { success: true, data: { summary: { total, dispatched, failed }, results: [{ taskFile, taskTitle, sessionId, sessionUrl, title, status, error? }] } } See also: jules_list_sources (find source identifiers), jules_dispatch_task, jules_wait_for_completion, jules_plan_tasks
| Parameter | Type | Description |
|---|---|---|
tasks * | ||
format | string | Format if `tasks` is a string |
paceMs | integer | Minimum delay in milliseconds between session creation starts across all workers |
parallel | integer |
jules_get_session
[DEPRECATED: Use jules_interact instead.] Fetch full details for a single Jules session, including state, source context, and created PR output. Use this when an AI agent needs the authoritative session record instead of a compact status summary. Returns: { success: true, data: { name, id, title, prompt, url, sourceContext, automationMode?, outputs?, createTime?, state? } } See also: jules_status (compact summary), jules_list_activities, jules_get_plan, jules_list_sessions
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
jules_list_sessions
List recent Jules sessions with optional pagination. Use this when an AI agent needs to discover recent sessions before selecting IDs for inspection or status checks. Returns: { success: true, data: { sessions: [{ name, id, title, url, state?, createTime? }], nextPageToken? } } See also: jules_get_session, jules_status, jules_wait_for_completion
| Parameter | Type | Description |
|---|---|---|
pageSize | integer | |
pageToken | string |
jules_status
[DEPRECATED: Use jules_monitor instead.] Summarize the state, derived status, activity count, and PR metadata for one or more sessions. Use this when an AI agent needs a compact progress view for known session IDs, including sessions outside the recent page. Returns: { success: true, data: { results: [{ sessionId, title?, state?, status?, prUrl?, prTitle?, activities?, error? }] } } See also: jules_get_session (full record), jules_list_activities, jules_wait_for_completion
| Parameter | Type | Description |
|---|---|---|
sessionIds * | array |
jules_list_activities
[DEPRECATED: Use jules_interact instead.] List the activity log for a Jules session, including plans, progress updates, messages, and terminal events. Use this when an AI agent needs detailed execution history or must inspect why a session is waiting, failed, or completed. Returns: { success: true, data: { activities: [{ id, createTime, originator, planGenerated?, progressUpdated?, message?, sessionCompleted?, sessionFailed? }], nextPageToken? } } See also: jules_get_session, jules_status, jules_get_plan
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | |
pageSize | integer | |
pageToken | string |
jules_get_plan
[DEPRECATED: Use jules_interact instead.] Get the most recently generated plan for a Jules session, or null if no plan exists yet. Use this before approving a plan-gated session or when an AI agent needs to review planned steps without scanning all activities. Returns: { success: true, data: { plan: { id, steps: [{ id, title, description?, index? }] } | null } } See also: jules_approve_plan, jules_list_activities, jules_get_session
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
jules_approve_plan
Approve the current plan for a Jules session that is awaiting plan approval. Use this only after an AI agent has reviewed the latest plan and decided the session should continue executing. Returns: { success: true, data: { sessionId } } See also: jules_get_plan (review before approving), jules_get_session, jules_wait_for_completion
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
jules_send_message
Send a follow-up message to a running Jules session. Use this when an AI agent needs to unblock a session, answer a question, clarify requirements, or provide revised instructions. Returns: { success: true, data: { sessionId } } See also: jules_get_session, jules_list_activities, jules_cancel_session
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | |
text * | string |
jules_cancel_session
Cancel a running Jules session. Use this when an AI agent determines a session is no longer wanted, is blocked beyond recovery, or should be stopped before it makes further changes. Returns: { success: true, data: { sessionId } } See also: jules_status, jules_get_session, jules_dispatch_task
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
jules_wait_for_completion
[DEPRECATED: Use jules_monitor instead.] Poll one or more Jules sessions until every session reaches a terminal status, a session requires action, or the timeout expires. Use this after dispatching work when an AI agent needs to coordinate follow-up actions around completed, failed, cancelled, plan approval, user feedback, paused, or still-running sessions. Returns: { success: true, data: { completed, failed, cancelled, awaitingPlan, awaitingUserFeedback, paused, actionRequired, stillRunning, timedOut } } See also: jules_dispatch_task, jules_dispatch_batch, jules_status, jules_list_activiti…
| Parameter | Type | Description |
|---|---|---|
sessionIds * | array | |
failFast | boolean | |
intervalMs | integer | |
timeoutMs | integer |
jules_dispatch
Dispatch one or more Jules tasks through a single consolidated orchestration call. Use this when an AI agent has a single task object, an array of task objects, or a YAML/JSON task payload and wants a continuously replenished worker pool with bounded concurrency and optional global launch pacing. Returns: { success: true, data: { summary: { total, dispatched, failed }, results: [{ taskFile, taskTitle, sessionId, sessionUrl, title, status, error? }] } } See also: jules_monitor (track dispatched sessions), jules_interact (inspect one session in context), jules_list_sources (find source identi…
| Parameter | Type | Description |
|---|---|---|
tasks * | ||
format | string | Format if `tasks` is a string |
paceMs | integer | Minimum delay in milliseconds between session creation starts across all workers |
parallel | integer |
jules_monitor
Monitor one or more Jules sessions with optional waiting until terminal or action-required state. Use this for consolidated status checks, or set wait=true after dispatching when an AI agent needs completed/failed/cancelled/action-required/still-running buckets before the next orchestration step. Returns without wait: { success: true, data: { sessions: [{ sessionId, title, state, status, prUrl?, lastActivity? }] } } Returns with wait: { success: true, data: { sessions, wait: { completed, failed, cancelled, awaitingPlan, awaitingUserFeedback, paused, actionRequired, stillRunning, timedOut }…
| Parameter | Type | Description |
|---|---|---|
sessionIds * | array | |
failFast | boolean | |
intervalMs | integer | |
timeoutMs | integer | |
wait | boolean |
jules_interact
Fetch full Jules session interaction context in one call. Use this when an AI agent needs the session record, derived status, globally latest plan, newest chronological activity window, total activity count, and PR output together before deciding whether to approve, message, monitor, or collect results. Returns: { success: true, data: { session: { id, title, state, url, source, branch }, status, plan, activityTotal, activities: [{ id, time, originator, title?, agentMessaged?, userMessaged?, planGenerated?, completed?, failed?, sessionFailed? }], pr? } } See also: jules_dispatch (create sess…
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | |
activityCount | integer |