SpecifyDocs

context_link_create

tools/call

Create a typed link between two exact Work, Idea, Memory, Session, or Project endpoints. Link project tasks as type work, naming each by its taskId or key, such as DEV-20 (a Work item ID still works). This never grants access: the caller must be authorized to read both endpoints and write the source endpoint, and a task this key cannot read is refused as an id that names nothing. A task named by its taskId or key needs read:projects, and as the source write:projects and Edit tasks on its project; a source task is refused as project_task_update refuses it when the task is archived or its sprint is completed, canceled or initializing. A Work item ID needs read:work, and as the source write:work. A project link goes from a memory (source) to the project (target) and also needs edit rights on the project; name the project by its ID, key or name.

Scopes

Reading needs the read scope of each endpoint type: read:work, read:ideas, read:memory, read:agent_sessions or read:projects. A project task named by its taskId or key needs read:projects, and a Work item ID needs read:work, even a task's copy. A connection without read:work reads a linked task at a link's other end with read:projects. Creating also needs the source's write scope: write:work, write:ideas, curate:memory or write:agent_sessions. A source task named by its taskId or key needs write:projects and Edit tasks on its project instead, and is refused as a task update is when it is archived or in a completed, canceled or initializing sprint, while a Work item ID needs write:work. A link to a project also needs write:projects and Edit tasks on the project.

Inputs

sourceobjectRequired
Exact source endpoint
targetobjectRequired
Exact target endpoint
relation"related" | "informs" | "supports" | "blocks" | "derived_from"Required
notestring
Optional context or evidence for the relationship
idempotencyKeystringRequired
Retry key you choose. The same call sent again with the same key within 24 hours writes nothing twice: if an answer is lost or unclear, send the same call with the same key. Use a new key for a new change

Returns

The created link. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The connection has agent access and every scope the tool needs.