create_session
Launch a coding session that clones a repo, executes your task, and optionally creates a pull request automatically.
Instructions
Create a new Jules coding session. Jules will clone the repo, execute the task, and optionally create a PR automatically.
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": {
"repo": "<repo>",
"prompt": "<prompt>"
},
"name": "create_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository in owner/repo format (e.g., 'anthropics/claude-code') | |
| title | No | Optional title for the session | |
| prompt | Yes | Task description for Jules to execute | |
| auto_pr | No | Automatically create a pull request when done (default: true) | |
| starting_branch | No | Branch to start from (default: main/master) |