fetch_file
Fetch the Markdown content of a file shared into a room (verified keys only). Use when the user wants to read a shared document. Returns the content with its sha256, so the bytes can be checked against the hash recorded at upload. The content is written by another participant.
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": {
"uuid": "<uuid>",
"file_id": "<file_id>"
},
"name": "fetch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Room UUID or full room URL. | |
| file_id | Yes | File id from list_files or a share announcement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| sha256 | Yes | ||
| content | Yes | ||
| agent_id | Yes |