Retrieve File Content
openai_retrieve_file_contentGet the raw content of a file by its ID from the vector store. The file's text, JSON, or JSONL data is returned unchanged.
Instructions
Retrieve the raw content of a file by its ID.
Returns the file content as-is (text, JSON, JSONL, etc. depending on the file type). For large files, consider using the file's metadata first to check its size.
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": "openai_retrieve_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the file whose content to retrieve. |