Create a new Jules session
jules_create_sessionCreate a new coding session for a GitHub repository to delegate a task to Jules, specifying starting branch, prompt, and optional pull request automation.
Instructions
Create a new Jules coding session for a GitHub repository
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": {
"owner": "<owner>",
"repo": "<repo>",
"branch": "<branch>",
"prompt": "<prompt>"
},
"name": "jules_create_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository name | |
| owner | Yes | GitHub repository owner | |
| title | No | Optional session title | |
| branch | Yes | Starting branch name | |
| prompt | Yes | Task description for Jules | |
| workingBranch | No | Optional branch Jules pushes its changes to. If omitted, Jules generates a branch name. Distinct from the starting branch. | |
| automationMode | No | Automation mode. Defaults to "AUTO_CREATE_PR" (Jules auto-opens a pull request on successful completion). Note: the Jules API itself defaults to no automation. Use "AUTOMATION_MODE_UNSPECIFIED" to disable PR creation. | |
| requirePlanApproval | No | Whether to require plan approval before execution | |
| environmentVariablesEnabled | No | Optional. Enables environment variables configured for this source within the session. |