Turn a text file into JSON
shape_file_to_jsonConvert local UTF-8 text files—key:value notes, CSV/TSV, or Markdown tables—into typed JSON, with automatic format detection and read-only access.
Instructions
Read a local text file (key: value notes, .csv, .tsv or a Markdown table) and return typed JSON.
Use this when the data is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Do not use it for Excel (.xlsx), PDF or other binary files, for files that are already JSON, or for app logs.
path: full path to a UTF-8 text file, up to 5 MB. format: "auto" (default) picks for you. Or force "kv" (key: value or key=value lines, a blank line starts a new record), "csv" (comma, semicolon, tab or | separated, first row is the header) or "markdown" (a | pipe | table, first row is the header).
Returns {"format": , "data": }, the same as shape_text_to_json.
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": "shape_file_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to a UTF-8 text file (.txt, .csv, .tsv, .md), up to 5 MB. | |
| format | No | Input format. "auto" picks for you; "kv" = key: value lines, "csv" = CSV/TSV, "markdown" = a pipe table. | auto |