Read a file
read_fileLook at a file on a document: an image comes back as the image, a PDF or text as its text where possible.
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": {
"document": "<document>",
"file": "<file>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The file's number on the document. | |
| document | Yes | The document's id (from list_documents), or its number once sent, like INV-0007. |