doc_checkout
Acquire an editing lock on a document to get exclusive access, returning content, hash, and lock token. Prevents concurrent modifications by signaling other agents with a locked status.
Instructions
Adquire lock de edição e devolve content + hash + lock_token. Outro agente recebe code=locked.
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>"
},
"name": "doc_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| agent_id | No | ||
| share_token | No | ||
| ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||