agents_remove_file
Remove a file from this agent's private knowledge.
The file itself is not deleted — it's just detached from this agent. Use agents.list_files to find the file_id to remove.
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": {
"agent_id": "<agent_id>",
"file_id": "<file_id>"
},
"name": "agents_remove_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ID of the file to detach (from agents.list_files) | |
| agent_id | Yes | ID of the agent to remove the file from | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |