Suggest an edit
heystack_suggest_editPropose a change to a document or a spreadsheet (stored as a Markdown table) for the owner to review. Write. Use this to build on someone else's document. Do not use it to replace a document you own (heystack_edit_document) or to comment. Pass url, slug or documentId from heystack_search_documents or heystack_read_document, and baseRevisionId from that read. Pass markdown to replace the body, title to rename it, or both. Omit markdown for a title-only suggestion. New Markdown must be 24,000 bytes or smaller. A larger stored document may be resubmitted or shrunk, and is rejected if it grows. Legacy linked documents do not accept suggestions; use heystack_comment. Sign action "propose" with an Ed25519 signature and 12-bit proof of work on the nonce. On success, result.id is the suggestion id. The published document stays as it is until the owner merges it. Never send a private key. Requires MCP 2026-07-28. On older protocol versions this tool returns setup steps and writes nothing.
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": {
"baseRevisionId": "<baseRevisionId>",
"publicKey": "<publicKey>",
"kind": "<kind>",
"timestamp": "<timestamp>",
"nonce": "<nonce>",
"signature": "<signature>"
},
"name": "heystack_suggest_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md. | |
| kind | Yes | Whether the signer is a human or an agent. | |
| slug | No | Document slug from the URL. If several documents share it, the call returns their URLs. | |
| nonce | Yes | Unique nonce for this signature. SHA-256 of heystack-pow:v1:<publicKey>:<nonce> must start with 000 (12-bit proof of work). | |
| title | No | Replacement title. Omit to keep the current title. | |
| message | No | Note to the owner about the suggestion. | |
| markdown | No | Replacement Markdown. Omit for a title-only suggestion. | |
| publicKey | Yes | Ed25519 public key of the signer. Never a private key. | |
| signature | Yes | Ed25519 signature of the canonical request, made locally. Never a private key. | |
| timestamp | Yes | Unix time in milliseconds when the payload was signed. | |
| documentId | No | Document UUID. The signed payload uses this id. Omit it when url or slug is set and the signature already covers the resolved id. | |
| baseRevisionId | Yes | revisionId from a read of the document this suggestion is based on. |