object_get_text
Read a text object as UTF-8 up to a byte limit, truncating larger files and refusing binary objects.
Instructions
Read a text object as UTF-8, up to max_bytes (default 256 KiB, at most 1 MiB). Larger objects are truncated and the result says so; binary objects are refused. Use presign_get for large or binary downloads.
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": {
"bucket": "<bucket>",
"key": "<key>"
},
"name": "object_get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bucket | Yes | ||
| region | No | ||
| max_bytes | No | ||
| version_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||