Read a private STEM file
read_fileReturn original bytes of an existing private file to this connected AI on user request, at most 1 MiB. Show the returned image when your host supports it; otherwise give the authenticated viewUrl or downloadUrl. Larger files use those links. A host display limitation does not mean the file was not saved. Never claim a local copy without evidence. Reading discloses bytes to this AI; no public sharing URL is created.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Existing private STEM file ID returned by upload_file or list_files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| reason | No | ||
| status | No | ||
| viewUrl | No | ||
| libraryUrl | No | ||
| downloadUrl | No | ||
| contentAvailable | No |