list_files
List files and folders in a sandboxed directory using relative paths; use '.' for the root and absolute paths are rejected.
Instructions
List files and folders inside the allowed sandbox directory.
Rules:
All paths are relative to the sandbox root
Use "." to list the root of the allowed directory
Absolute paths (like "/") are not allowed
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": {
"relative_path": "<relative_path>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relative_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |