prepare_stage_prompt
Writes a self-contained stage_prompt.md bundle for a paused external-seat run so a fresh subagent can execute a waiting stage without prior context. Pass the file path, then submit its deliverable.
Instructions
For a run paused at an external seat: write stage_prompt.md, a self-contained bundle a fresh subagent can act on with zero prior context, so a driving session can dispatch the stage instead of authoring it inline. Fork a subagent, give it only this file's path; take its returned deliverable back to submit_stage. A run can wait on several stages at once (waiting in external_prompt): pass stage to prepare another one than the first; its bundle is written to stage_prompt-.md. A stage that waits for a repair is refused (answer it with repair_reply).
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": {
"run": "<run>"
},
"name": "prepare_stage_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| stage | No | which waiting stage to bundle; defaults to the first in `waiting` that is not waiting for a repair |