add_file_attachment
Attach a file or image to a specific thought in TheBrain by providing the thought ID and file path. Optionally, set a custom attachment name.
Instructions
Add a file attachment (including images) to a thought
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": {
"thoughtId": "<thoughtId>",
"filePath": "<filePath>"
},
"name": "add_file_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brainId | No | The ID of the brain | |
| fileName | No | Name for the attachment (optional, uses filename if not provided) | |
| filePath | Yes | Path to the file to attach | |
| thoughtId | Yes | The ID of the thought |