File Processor
File Processor
ToolIntermediateRead, write, and transform files including text, JSON, CSV, and images.
File Systemfilesioreadwritetransform
When to Use
Essential for agents that work with documents, spreadsheets, or media files. Supports common transformations like format conversion and data extraction.
Usage Conditions
- File needs to be read or written
- Document format conversion is required
- Data needs to be extracted from files
Parameter Schema
| Name | Type | Required | Description |
|---|---|---|---|
| operation | string | Operation: read, write, transform, delete | |
| path | string | File path or URL | |
| content | string | Content to write (for write operations) | |
| transform | string | Transformation to apply |
Implementation Notes
# File Processor Tool ## Purpose Handle file operations with support for multiple formats. ## Supported Formats - Text: .txt, .md, .html - Data: .json, .csv, .xml, .yaml - Documents: .pdf (read-only) - Images: .png, .jpg, .webp ## Transformations - Format conversion - Text extraction - Data parsing
Generated JSON Schema
{
"type": "object",
"name": "File Processor",
"geneType": "tool",
"parameters": {
"operation": { "type": "string", "required": true },
"path": { "type": "string", "required": true },
"content": { "type": "string" },
"transform": { "type": "string" }
}
}