Shared resource
resourceClaim, release, or list shared exclusive items so only one session or helper starts a dev window, port, or similar task at a time; claims are refused with holder details when in use.
Instructions
A named shared resource that only one session or helper can use at a time (a dev window that allows a single instance, plasmashell, a port). claim it before you or a helper start something that needs it: refused, saying who holds it, since when and why, when someone else has it; then do not start it, do other work and try again later (nothing waits for you). Claiming your own again refreshes its time. It frees itself after minutes (30 unless given, at most 240) from the last claim, when its Session ends, or when you release it. A helper usually cannot call Progressor: claim on its behalf with label such as 'helper: media run'. release it as soon as the work that needed it ends (a helper's too), with the same label; another holder's is refused unless force, only when the Developer says the holder is gone. list says who holds what (get_status shows the same).
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": {
"action": "<action>"
},
"name": "resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | To claim: the Task ID it is for, such as 't3'. | |
| force | No | To release: even though someone else holds it. Only when the Developer asks. | |
| label | No | Who it is held for when that is not this Session itself, such as 'helper: media run'. Claim and release a helper's lock with the same label. | |
| action | Yes | claim, release or list. | |
| reason | No | To claim: why you need it, in a few words, such as 'running the UI test'. Shown to whoever is refused. | |
| minutes | No | To claim: how long to keep it before it frees itself, from now. 30 if omitted; claim again to extend. | |
| resource | No | The shared thing's name, such as 'dev-window' or 'plasmashell'. Case and spaces do not matter. |