upload_file
Transfer a file to the PDF.co API for processing, enabling tasks like PDF conversion, editing, and security operations. Requires the file’s absolute path and an optional API key.
Instructions
Upload a file to the PDF.co API
Input Schema
Name | Required | Description | Default |
---|---|---|---|
api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
file_path | Yes | The absolute path to the file to upload |
Input Schema (JSON Schema)
{
"properties": {
"api_key": {
"default": "",
"description": "PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)",
"title": "Api Key",
"type": "string"
},
"file_path": {
"description": "The absolute path to the file to upload",
"title": "File Path",
"type": "string"
}
},
"required": [
"file_path"
],
"type": "object"
}