Read a file
get_fileRead a file: name, description, type, size, linked notes and tasks, and its content
(with_content), as text if it is readable as UTF-8, otherwise as base64 (encoding). version:
an earlier version. Read it before saving a next version (save_file).
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>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| version | No | ||
| with_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| size | Yes | Size in bytes. | |
| space | Yes | ||
| author | Yes | ||
| sha256 | Yes | ||
| content | No | The content of the version read, if requested (`with_content`). | |
| version | Yes | ||
| archived | Yes | ||
| encoding | No | How to read `content`: UTF-8 text, or base64 for binary content. | |
| client_id | Yes | ||
| updated_at | Yes | ||
| description | Yes | ||
| content_type | Yes | ||
| linked_notes | No | ||
| linked_tasks | No |