workspace_text_search
Search workspace files line by line using literal text or regex, filter by extensions, and report skipped binary or non-UTF-8 files.
Instructions
Search lines by literal text or regex; report skipped binary/non-UTF-8 files.
extensions accepts suffixes with or without a leading dot; null selects all files, while an empty list selects none. max_matches limits returned matching lines, not scanning. Counts are exact; skipped-file paths are available through the linked immutable resource.
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": {
"query": "<query>"
},
"name": "workspace_text_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | project/ | |
| query | Yes | ||
| regex | No | ||
| extensions | No | ||
| max_matches | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | Yes | ||
| resources | No | ||
| matches_count | Yes | ||
| matches_truncated | Yes | ||
| skipped_files_count | Yes |