fetch_targeted_data
Retrieve specific rows, columns, or lines from SQLite, JSON, CSV, or text files using SQL queries, path expressions, filters, or line ranges.
Instructions
Execute targeted data fetching against structured files. Supports:
SQLite: SQL query via
queryparameter (e.g. 'SELECT * FROM users WHERE role="Admin"')JSON/JSONL: path expression via
queryparameter (e.g. 'users[0].email' or 'config.db')CSV/TSV: column filtering, row offsets/limits, and value match filters
Text/Code: line range extraction via
start_lineandend_lineparameters.
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": {
"rel_path": "<rel_path>"
},
"name": "fetch_targeted_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| columns | No | ||
| end_line | No | ||
| rel_path | Yes | ||
| row_limit | No | ||
| filter_col | No | ||
| row_offset | No | ||
| start_line | No | ||
| filter_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||