Built-in tool
Extract Text From File
Read text out of a PDF or plain-text/JSON file given a URL or upload.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| sourcestring · required | string | required | Where the file comes from. One of: |
| file_linkstring · required if source is link | string | required if source is link | A direct URL, a table column value, or any variable that resolves to a file reference. PDF and plain text are supported. Example: |
| file_uploadstring · required if source is upload | string | required if source is upload | Upload a file (max 50MB). Stored in the Supabase attachment bucket. |
| mime_typestring · optional | string | optional | Override the file type detection. Leave on Auto to use the file declared MIME. One of: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"text",
"mime",
"name",
"size",
"source"
],
"properties": {
"mime": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"size": {
"type": "number"
},
"text": {
"type": "string"
},
"source": {
"enum": [
"link",
"upload"
],
"type": "string"
}
},
"additionalProperties": false
}