doc_update
Update a document in the shared virtual filesystem only when the expected SHA-256 hash matches the current version, preventing overwrites from concurrent changes.
Instructions
Atualiza com compare-and-swap. Falha com code=conflict se expected_hash não for o atual.
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": {
"doc_id": "<doc_id>",
"expected_hash": "<expected_hash>"
},
"name": "doc_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| title | No | ||
| doc_id | Yes | ||
| content | No | ||
| message | No | ||
| agent_id | No | ||
| keep_lock | No | ||
| lock_token | No | ||
| share_token | No | ||
| expected_hash | Yes | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||