filter_rows
Filter rows in Excel or CSV files by applying conditions to column values, enabling targeted data extraction and analysis.
Instructions
Filter rows based on column values
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": {
"filePath": "<filePath>",
"column": "<column>",
"condition": "<condition>",
"value": "<value>"
},
"name": "filter_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the CSV or Excel file | |
| column | Yes | Column name or index (0-based) | |
| condition | Yes | Condition: equals, contains, greater_than, less_than | |
| value | Yes | Value to compare against | |
| sheet | No | Sheet name for Excel files (optional) |