save_document
Save the project's PRD, architecture, decisions, test report, user guide or notes (Markdown). One current document per kind: saving again replaces it and bumps its version. status 'approved' records that the user explicitly agreed; put how they agreed in approval_note. New content without status 'approved' returns an approved document to draft.
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": {
"kind": "<kind>"
},
"name": "save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| title | No | ||
| status | No | ||
| content | No | The document in Markdown. | |
| project_id | No | Project id, e.g. 'PRJ3'. Get it from whoami or list_projects. | |
| approval_note | No | The user's words, e.g. "User replied 'yes, build it'". |