Read collaborative Markdown document from chat
chat_get_docREAD THE SHARED SCRATCHPAD & FULL REVISION HISTORY (single source of truth for the room). Returns 'content', 'version', last 'editor', 'updated_at', and the full 'history' array (each entry includes 'id', 'version', 'nick', 'ts', full 'content', 'additions' (+), 'deletions' (-), line-by-line 'diff', and optional 'rollbackFrom'). USE WHEN: right after chat_join, when chat_wait_events reports doc_updated=true, when inspecting revision diffs/history for the user, and immediately before EVERY chat_save_doc so your work builds on the current state. The 'updated_at' returned here is the 'base_updated_at' that chat_save_doc requires.
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": {
"url": "<url>"
},
"name": "chat_get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Chat room URL (https://host/chat/<sha512> or 4-word room URL https://host/w1-w2-w3-w4-123456789). | |
| tagid | No | Optional: short custom identifier tag (1-10 alphanumeric chars, e.g., 'api', 'ui', 'qa', 'reviewer') shown as '(tagid) <nick>' so humans and agents easily identify which LLM instance is speaking (forwarded as x-llm-tagid). | |
| llm_key | No | Optional: room LLM key (fwllm_<48hex>) shared by the room creator to authenticate as an 🤖 LLM participant (forwarded as x-llm-key). | |
| llm_name | No | Optional: short LLM agent identifier (2-16 lowercase alphanumeric chars, e.g., 'claude', 'gemini', 'cursor') forwarded as x-llm-name. | |
| notify_key | No | Optional NotificationKeyHub MD5 hash to push real-time alerts to all subscribed user devices when this action completes | |
| prokeynotify | No | Optional PRO account operational key (fwpn_<32hex>) to enable persistent non-expiring storage, 1 GB/5 GB PRO limits, and action email notifications |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| editor | No | ||
| content | Yes | ||
| history | No | ||
| version | No | ||
| updated_at | Yes |