agent_claim
Prevent conflicts by claiming a file, function, task, or feature for exclusive editing. Specify the target and your intent to obtain a claim ID for later release.
Instructions
Claim a file, function, task, or feature for exclusive editing. Conflict detection prevents two agents from claiming the same target simultaneously. Requires targetId (file path or task ID) and intent (natural language description of what you plan to do). Returns a claimId — save it for the matching agent_release call. claimType: task | file | function | feature.
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": {
"targetId": "<targetId>",
"intent": "<intent>"
},
"name": "agent_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | Target file path or task ID to claim | |
| claimType | No | Claim target type | task |
| intent | Yes | Natural language intent | |
| taskId | No | Related task id | |
| agentId | No | Agent identifier | |
| sessionId | No | Session identifier | |
| profile | No | Response profile | compact |