claim
Reserve files for a Linear issue before editing to avoid concurrent session conflicts; the request is all-or-nothing and returns conflicting files for coordination.
Instructions
Register intent to edit one or more files, scoped to a Linear issue id. Call this BEFORE editing files you haven't touched yet in this session — the PreToolUse hook auto-claims files as you edit them, so this is mainly for reserving files ahead of time (e.g. before a multi-file refactor) or to check for conflicts early. All or nothing: if another session holds any of the files, nothing is claimed and they are listed as conflicts. Treat conflicts as a signal to coordinate with that session, not to force through.
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": {
"issue_id": "<issue_id>",
"file_paths": "<file_paths>",
"session_id": "<session_id>"
},
"name": "claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | Linear issue identifier (e.g. ENG-123) this work belongs to | |
| file_paths | Yes | Absolute or repo-relative file paths to claim | |
| session_id | Yes | The scoped session_id given to you in context at session start (from scoped's SessionStart hook). Required so this claim matches the PreToolUse hook's enforcement for your session. | |
| ttl_seconds | No | Override the default 4h claim expiry (max 7 days) |