create_branch
Create a separate branch from the live agent to develop changes in isolation, then publish the draft and make it live when ready.
Instructions
Create a new branch to work on a set of changes in isolation, without touching the live agent. The branch starts from a source branch's head (the live branch by default). Edit its draft with the usual tools (pass the new branch_id), publish_draft to commit, then make_branch_live to serve it.
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": {
"agent_id": "<agent_id>",
"name": "<name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Branch name (1-100 chars). Cannot be 'main'. | |
| agent_id | Yes | The agent ID | |
| source_branch_id | No | Branch to fork from (from list_branches). Omit to fork from the live branch. |