Remove a file link
unlink_fileDetach a file link that was deleted, renamed or attached by mistake. Removes only the reference from the task, leaving nothing on disk touched.
Instructions
Remove a link whose file was deleted, renamed or attached by mistake. Nothing on disk is touched.
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": {
"ref_id": "<ref_id>"
},
"name": "unlink_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Your model id, e.g. 'claude-opus-5'. | |
| ref_id | Yes | From the `files` of get_context or get_task. Removes the link, not the file. |