local_map_reduce_file
Compress large files, traces, or logs using local Ollama map-reduce to lower token consumption before ingesting into context.
Instructions
Compress large files, traces, or logs using local Ollama Map-Reduce before ingesting into context.
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>",
"extraction_goal": "<extraction_goal>"
},
"name": "local_map_reduce_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| overlap | No | ||
| file_path | Yes | ||
| chunk_size | No | ||
| concurrency | No | ||
| extraction_goal | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |