get_branch_draft
Get a branch's unpublished draft with its most recent revision and edit history, showing which sections changed per edit. Use list_branches to identify branches with open drafts.
Instructions
Get a branch's pending (unpublished) draft — its latest draft revision and edit history (which sections changed per edit). Each branch has at most one open draft. Use list_branches to see which branches have one (hasOpenDraft).
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": "get_branch_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent ID | |
| branch_id | No | Branch whose draft to read (from list_branches). Omit for the live branch; if the agent has multiple branches you'll be asked to pick one. |