prompts_blocks_update
Replace the stored prompt-block overrides at one level (workspace when agent_id is omitted, else that agent). prompt_blocks is the FULL desired object for the level: {"": {"enabled": bool|null, "text": str|null (guidance blocks only), "order": int|null (reorders within the block's cache tier), "hidden_rows": [label, ...] (fact blocks only)}}. Pass null for an entry to remove it (inherit). Fails loudly: unknown block/label ids, editing a fact block's text, empty text, size caps, and newly hiding a fact row that an enabled tool consumes are all rejected with the full error list — read prompts.blocks_registry for valid ids. Pre-existing stored state is never re-validated (grandfathered).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Agent id for the agent level; omit for the workspace level. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| prompt_blocks | Yes | Full desired overrides object for the level (see tool description for the entry shape). |