File Processor

Back

File Processor

ToolIntermediate

Read, write, and transform files including text, JSON, CSV, and images.

File Systemfilesioreadwritetransform
Use This Template
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
NameTypeRequiredDescription
operationstringOperation: read, write, transform, delete
pathstringFile path or URL
contentstringContent to write (for write operations)
transformstringTransformation 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" }
  }
}