update_work_dependencies
Adds and removes DEPENDENCY edges that involve a plan: plan → plan, plan → task, task → plan (a plan or a task WAITS for another item). Each edge succeeds or fails ALONE; up to 100 to add and 100 to remove. A task → task dependency is refused: it lives in dependsOn of create_tasks / update_task. This is a work dependency between tasks and plans, NOT a canvas link between blocks (add_dependency). An edge that would close a cycle is refused with the path (the implicit ones — a task is a member of a plan that waits for it, a plan has its member tasks — are named). Adding an edge that exists answers unchanged. Edges stay within ONE project. REMOVING an edge whose target is ARCHIVED (or a cancelled plan) and not lifted is REFUSED (ARCHIVED_DEPENDENCY_REMOVAL_REFUSED): lift it through a decided arbitration, archive or finish the dependent, or un-archive the target. Removing an edge that is open, lifted or whose target is missing is fine, as is any edge of a dependent that is done. Removals run before additions. On an OAuth connection, a call with remove is refused, with no dependency changed (the additions of that call included), until it carries the confirmationToken that the refusal itself returned (a token issued for another call is refused); the refusal names the dependencies to be removed, and the user's explicit yes comes between it and the second call that carries the token. The token shows that the refusal was read, not that the user agreed. A call that only adds edges, an API key and a session are not asked for it. Writes are refused while the project is write-locked for agents.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_work_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Edges to add (up to 100); each one succeeds or fails alone. It replaces nothing: the other edges of an item stay as they are. | |
| remove | No | Edges to remove (up to 100), fields described on `add`; each one succeeds or fails alone. It replaces no list: only the listed edges are removed. The note is ignored. | |
| confirmationToken | No | Only read on an OAuth connection, where a call with `remove` is refused (the additions of that call are not applied either) until the call carries the `confirmationToken` that the refusal itself returned (up to 64 characters). A token that was not issued for this very call (this tool, this account, this project and exactly these targets) is refused. The refusal names the dependencies concerned, and the user's explicit yes comes between that refusal and the second call that carries the token. The token shows that the refusal was read; it is not the user's agreement. An API key or a session is not asked for it and the field is ignored there. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |