Write documentation
update_documentWrite the documentation and declare the integrated sources, with the version you read (and, for a task, the number of log entries read).
Without content, declares sources you read that contribute nothing. expected_version is the
version read with get_document; on a conflict, read it again and reapply your change. The content
keeps the outline's headings.
With section, content carries only that section, heading included, and nothing of another:
the rest of the documentation is kept intact, without you retyping it. expected_version remains
that of the whole documentation.
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": {
"space": "<space>",
"name": "<name>",
"expected_version": "<expected_version>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the documentation in the space, e.g. “fonctionnalites”. | |
| space | Yes | Space identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces. | |
| content | No | ||
| section | No | ||
| integrated | No | ||
| expected_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| version | Yes | ||
| integrated | Yes | ||
| pending_count | Yes | Sources still pending after this call. |