parse_macro_output
Parses macro output or pasted results from Fiji/ImageJ into structured JSON, automatically detecting format as key-value pairs, tables, or numbers.
Instructions
Turn macro return text or a pasted Results snippet into structured JSON: detected format, key/value map, tabular rows, and/or extracted numbers. Prefer macros that return a small JSON or key=value string for best results.
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": {
"text": "<text>"
},
"name": "parse_macro_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Usually MacroRunResult.result or a log tail slice. | |
| format_hint | No | auto: try JSON, then ImageJ-style TSV, CSV, key=value lines, then numbers. json/csv/key_value/imagej_table/numbers_only: force a parser. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| format_detected | Yes | ||
| parsed_json | No | ||
| values | No | ||
| rows | No | ||
| numbers | No |