prompts_blocks_preview
Assemble an agent's system prompt through the REAL builder and return it block by block with attribution (id, kind, cache phase, token estimate), the cached-prefix/dynamic-suffix split, and any ignored stale overrides or missing translations. Byte-equality with the production assembly is verified — the preview cannot lie. Use after prompts.blocks_update to see the effect.
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": "prompts_blocks_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent whose prompt to assemble. | |
| thread_id | No | Optional thread to load real situation/history context from. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |