搜索文件
search_filesRecursively search remote FTP/SFTP directories for files matching a filename wildcard pattern, without following symbolic links. Ideal for locating files within a controlled server root.
Instructions
在虚拟远程目录下按文件名通配符递归搜索,不进入或返回符号链接。
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": {
"path": "<path>",
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 服务器虚拟绝对路径,以 / 开头;/ 表示配置的服务器 root。 | |
| server | No | 可选服务器别名;省略时使用默认服务器。 | |
| pattern | Yes | 文件名通配符;非空且不能包含路径分隔符。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||