search_files
Find files matching a glob pattern within the workspace. Specify a pattern and optional root directory to locate files quickly.
Instructions
Find files by glob pattern (e.g. ".py", "**/.test.ts").
Args:
pattern: Glob pattern, evaluated relative to root.
root: Directory to search under, relative to the workspace root.
max_results: Cap on number of matches returned.
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": {
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | . | |
| pattern | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||