get_story_diff
Retrieve an in-flight story's worktree diff summary, or fetch one listed file's diff by passing its repo-relative path. Returns availability or 404 errors for missing worktrees, plans, or stories.
Instructions
Return the in-flight story's worktree diff summary, or one file's diff
when path is given.
plan_name: the plan's name this story belongs to. story_key: the story's key within that plan's manifest. path: optional repo-relative path; must be one of the files listed in the summary. Over-long values are truncated to MAX_PATH_LENGTH and so will not match any listed file.
A story with no worktree returns {"available": False, "reason": ...} rather than raising. An unknown plan/story returns {"ok": False, "status": 404, "error": ...}.
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": {
"plan_name": "<plan_name>",
"story_key": "<story_key>"
},
"name": "get_story_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| plan_name | Yes | ||
| story_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||