pick_fields
Extract only the fields you need from each object in a JSON array, like a SQL SELECT projection, to reduce noise and return focused results.
Instructions
Extract specific fields from each object in an array (projection).
Like SQL SELECT — picks only the columns you care about.
Args: alias: The alias of the loaded document. path: Dot-notation path to the array of objects. fields: List of field names to include (e.g. ["name", "price"]).
Returns: The projected array containing only the specified fields.
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": {
"alias": "<alias>",
"path": "<path>",
"fields": "<fields>"
},
"name": "pick_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| alias | Yes | ||
| fields | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |