Publish the final text of a generated document
publish_documentSaves the final version of a document after every [CONFIRM: ...] placeholder has been resolved with the user. For privacy-policy and account-deletion this makes the hosted page live at its public URL; for the other kinds it just stores the final text. Call it again whenever the text needs an update (for example after the app adds a new data type).
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": {
"app_token": "<app_token>",
"kind": "<kind>",
"markdown": "<markdown>"
},
"name": "publish_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| markdown | Yes | The complete final document in Markdown (headings, lists, bold and links only). | |
| app_token | Yes | The app_token returned by audit_app. It is stored in .approvekit.json at the project root. |