inspect_file
Show sheet names, column headers, and sample rows from Excel or CSV files, then identify compatible schemas for validation.
Instructions
Show the sheets, column headers and first rows of a file, and which schemas fit it best.
Args: path: File path relative to the data folder, as returned by list_files. sheet: Excel sheet name. Defaults to the first sheet. Ignored for CSV. sample_rows: Number of example rows to return (1-20).
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": "inspect_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | No | ||
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||