Create Jules Session
jules_create_sessionStarts a new automated coding session for a selected source and prompt, letting Jules work on the specified goal and optionally create a PR.
Instructions
Starts a new automated coding session with Jules.
Use this after identifying a target source (e.g. from jules_list_sources). This creates a session where Jules will work on the given prompt.
Args:
prompt (string): The user's goal or instructions.
source (string): The full name of the source (e.g., "sources/github/owner/repo").
startingBranch (string): The starting branch for the repository (default: "main").
automationMode ("AUTO_CREATE_PR" | "NONE"): Whether to automatically create a PR (default: "NONE").
title (string): The title of the session.
requirePlanApproval (boolean): If true, implicitly requires an approve_plan call to proceed.
response_format ('markdown' | 'json'): Output format (default: 'markdown').
Returns: The created session details.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"source": "<source>",
"title": "<title>"
},
"name": "jules_create_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The title of the session. | |
| prompt | Yes | The user's goal or prompt for the session. | |
| source | Yes | The name of the source resource (e.g., 'sources/github/owner/repo'). | |
| automationMode | No | Whether to automatically create a PR ('AUTO_CREATE_PR' or 'NONE'). | NONE |
| startingBranch | No | The starting branch for the repository. | main |
| response_format | No | Output format: 'markdown' or 'json' | markdown |
| requirePlanApproval | No | If true, requires an explicit call to approve_plan to proceed. |