redline_import
Normalizes exported JSONL logs into redline prompt/response JSONL, letting you map or auto-detect prompt and response fields before running regression evals.
Instructions
Normalize exported JSONL fields into redline prompt/response JSONL.
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": {
"path": "<path>"
},
"name": "redline_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory where redline should run. | |
| out | No | Redline JSONL output path. | |
| json | No | Print machine-readable JSON. | |
| path | Yes | Source JSONL file to normalize. | |
| limit | No | Maximum records to import. | |
| detect | No | Suggest prompt and response field mappings without writing output. | |
| preset | No | Optional import preset such as langfuse, helicone, datadog, dolly, or openai-chat. | |
| preview | No | Preview this many mapped rows without writing output. | |
| auto_map | No | Use the best detected prompt/response mapping. | |
| id_field | No | Optional source field path copied to the redline id field. | |
| no_redact | No | Write raw values without import redaction. | |
| input_field | No | Source field path containing prompt text. | |
| output_field | No | Source field path containing response text. | |
| context_field | No | Optional source field path appended to the prompt as Context. | |
| metadata_fields | No | Source field paths copied into metadata. | |
| max_output_bytes | No | Maximum stdout/stderr bytes returned to the MCP client. | |
| redaction_placeholder | No | Replacement text for import redaction. |