save-robot-output
Saves Claude-generated robot analysis as clean Markdown and rich HTML in a product's assets folder, giving Phase 2 robots and presentations the exact output they need.
Instructions
Save the analysis text that Claude generated for a robot to the product's assets folder.
This is distinct from the prompt payload saved by run-robot. This tool saves the ACTUAL ANALYSIS TEXT Claude produced — the content that Phase 2 robots read as their primary input.
Call this immediately after Claude generates a robot's analysis, passing the clean Markdown and rich HTML versions.
CRITICAL FORMATTING RULE: You must provide TWO versions of your output:
'cleanMarkdown': Standard, plain Notion-compatible Markdown. No HTML tags, no inline CSS, no elements. This is used by Phase 2 robots and the final PDD.
'htmlText': The EXACT rich HTML content you rendered in the chat window, including all colored badges, styled divs, and visuals. Do not use dark mode or dark backgrounds; use white or light backgrounds for the HTML files. Wrap every multi-line HTML block and every block in a ```html fence — bare multi-line HTML breaks the saved HTML file.
VERDICT BLOCK RULE: If the robot's output ends with a machine-readable json verdict block (scout, detective, people, money, synthesizer), that block MUST be preserved verbatim as the last element in BOTH cleanMarkdown and htmlText — the Synthesizer and PDD composer parse it. The same applies to Money's Vega-Lite json chart specs. ```json fences are valid plain Markdown and do not violate the no-HTML rule.
File pattern:
assets/YYYY-MM-DD--output.md (stores cleanMarkdown)
assets/YYYY-MM-DD--output.html (stores htmlText)
IMPORTANT: Call this tool after EVERY Phase 1 robot run if the product will eventually go to Phase 2. Phase 2 robots (user-stories, scope-spec, etc.) read the .md output files to derive their analysis.
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": {
"productSlug": "<productSlug>",
"robotName": "<robotName>",
"cleanMarkdown": "<cleanMarkdown>",
"htmlText": "<htmlText>"
},
"name": "save-robot-output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epicId | No | Epic ID if this output belongs to a specific Epic | |
| htmlText | Yes | The rich HTML output exactly as rendered in the chat, keeping backgrounds white or light (no dark mode). Used for the presentation UI. | |
| featureId | No | Feature ID if this output belongs to a specific Feature | |
| robotName | Yes | Which robot produced this output | |
| productSlug | Yes | The product slug | |
| cleanMarkdown | Yes | Clean, plain Markdown text without any HTML tags. Used internally by Phase 2 robots. |