Filter a node set
graph_filterFilter explicit node IDs by kind, path glob/prefix/suffix, name, tag, or regex to narrow graph_find results for targeted graph traversal or analysis.
Instructions
Operator 3 (filter): narrow an explicit node set by kind, path glob/prefix/suffix, name, or tag (tags include code, doc, test, entry, manifest, exported). Combine with graph_find output ids.
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": {
"ids": "<ids>"
},
"name": "graph_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Node ids to filter. | |
| tag | No | ||
| kind | No | ||
| name | No | Case-insensitive substring of the node name. | |
| path | No | Glob, e.g. src/**/*.ts | |
| limit | No | ||
| regex | No | JavaScript regex over the node name. | |
| prefix | No | ||
| suffix | No | ||
| notKind | No |