Agent worktree diff
get_agent_diffRetrieve an isolated agent's worktree changes against its starting commit, including uncommitted and untracked files, with per-file line counts and a size-capped unified diff.
Instructions
An isolated agent's changes: everything in its managed worktree, committed or not and untracked files included, against the commit it started from (the snapshot for snapshot isolation). Returns per-file line counts and a unified diff capped at max_chars (default 20000, cut at a line end; truncated says so).
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": "<agent>"
},
"name": "get_agent_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| max_chars | No |