analyze_file
Read a complete file and apply a Fabric pattern for analysis, ensuring no truncation. Ideal for documents, code files, logs, and more.
Instructions
Read a file and analyze it with a Fabric pattern in one step. This ensures the complete file content is processed without truncation. Useful for analyzing documents, code files, logs, etc.
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": {
"file_path": "<file_path>",
"pattern": "<pattern>"
},
"name": "analyze_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | The Fabric pattern to apply (e.g., 'summarize', 'explain_code', 'analyze_logs', etc.) | |
| file_path | Yes | The absolute path to the file to analyze |