搜內容
fs_grepSearch file contents line by line with regex, skipping .git and files >1MB; invalid patterns fallback to literal matching.
Instructions
正則逐行搜尋檔案內容(跳過 .git/node_modules 與 >1MB 檔)。非法正則時降級為精確字面量:有命中回 literal_fallback 警告,零命中才報 INVALID_REGEX。
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": "fs_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | . | |
| limit | No | ||
| query | Yes | ECMAScript 正則 |