link_annotation
Attach an existing annotation to a condition or detach it with an empty condition, so unattached notes can be tied to the correct finish or moved when needed.
Instructions
Attach an existing annotation to a condition, or detach it by passing an empty condition — the canvas's Attach/Detach control, reachable by an agent. Use it to tie up notes left unattached (list_annotations reports how many), or to move one to the finish it actually concerns. Attaching mints the tag on first use.
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": {
"annotation_id": "<annotation_id>",
"condition": "<condition>"
},
"name": "link_annotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | Finish tag to attach to; empty string detaches | |
| annotation_id | Yes | Id from annotate or list_annotations |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| note | Yes | ||
| condition | Yes | ||
| condition_id | No |