Uploads Read File
uploads_read_fileRead a Workspace Files upload by upload ID to inspect user-uploaded content. Returns UTF-8 text for text files or a 150-byte base64 preview for other files, plus name, type, and size.
Instructions
Read the content of one Workspace Files upload by its upload ID, to check what the user uploaded. Files stored with a text/ MIME type come back whole as UTF-8 text; any other file returns only a base64 preview of its first 150 bytes, so pass binary files to the consuming tool (e.g. drive_upload_file) instead. Returns name (the original filename), type, size, and content or content_base64 with encoding and truncated.
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": {
"name": "<name>"
},
"name": "uploads_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Upload ID (upl_...): the upload_id (also name) of a file listed by uploads_list_files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Uploaded file metadata and readable content or binary preview. |