csv_search
Find CSV records where a specified field matches a regex pattern. Supports case sensitivity and returns selected fields.
Instructions
Search for records where a field matches a regex pattern.
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": {
"file": "<file>",
"field": "<field>",
"pattern": "<pattern>"
},
"name": "csv_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the CSV file | |
| field | Yes | Field name to search in | |
| pattern | Yes | Regex pattern to match | |
| maxResults | No | Maximum results to return (default: 100) | |
| returnFields | No | Fields to include in results (default: all) | |
| caseSensitive | No | Case-sensitive matching (default: false) |