Update document body
update_doc_bodyReplace the document body (clean_md) only on cards created by the agent (source_type=api). Human url/file cards → forbidden. Needs ingest:write. PUT /api/v1/source-items/{id}/agent/clean-md base_fingerprint is REQUIRED — take clean_md_fingerprint from get_doc (OCC; mismatch → CONTENT_STALE). Agent cards stay out of Ask until a human opts in («В поиск»).
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": {
"id": "<id>",
"markdown": "<markdown>",
"base_fingerprint": "<base_fingerprint>"
},
"name": "update_doc_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | source_item UUID or silvalabs:doc/<uuid>/… | |
| markdown | Yes | New clean_md body (non-empty) | |
| base_fingerprint | Yes | Current clean_md_fingerprint from get_doc |