Link a file
link_fileChange the tasks and notes linked to a file without uploading its content again: the next version reuses the current one's content.
expected_version: the version read with get_file. linked_tasks, linked_notes, when given,
replace the list (tasks and notes of the file's space); omitted, they are kept.
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": {
"file_id": "<file_id>",
"expected_version": "<expected_version>"
},
"name": "link_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| linked_notes | No | ||
| linked_tasks | No | ||
| expected_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| version | Yes |