claim
Reserve the next number in a sequence (a migration, an ADR, a release) so no other agent takes it; two agents asking at once never get the same number. The hooks already claim a numbered file's number when you create it, so call this only for a number you need before writing, or for a named sequence. Returns the number, zero-padded like the files already there.
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": {
"sequence": "<sequence>"
},
"name": "claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | The highest number you already see in use in that directory, if any. | |
| title | No | What the number is for; teammates see it. | |
| repo_id | No | The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in. | |
| sequence | Yes | A directory such as db/migrations/, or a name such as release. |