fs_search
Search sandbox text files for text or regular expressions, with optional path, filename pattern, result limit, and case-sensitivity controls. Use it to locate matching lines in allowed files.
Instructions
在沙箱文本文件中搜索内容。
Args: query: 要查找的文本或正则表达式。 path: 搜索起点,相对于沙箱根目录。 pattern: 文件名过滤模式,例如 "*.py"。 max_results: 最多返回的匹配行数,1-500。 use_regex: 是否把 query 当作正则表达式。 case_sensitive: 是否区分大小写。
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_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| query | Yes | ||
| pattern | No | * | |
| use_regex | No | ||
| max_results | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |