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.
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 | |||