Search files by name in a sandbox
search_filesSearch sandbox files and directories by name using a glob pattern and optional path to find matching entries; symlinks are not followed and file read permission is required.
Instructions
Search files by name in a sandbox. Every file and directory under path whose name matches the glob pattern (for example *.py). Symlinks are not followed. Needs file.read.
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": {
"sandboxId": "<sandboxId>",
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | /home/user | |
| pattern | Yes | ||
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |