list_directory
Lists files and subdirectories with sizes within a directory confined to the filesystem base, defaulting to the WordPress root. Use it to inspect allowed directory contents safely.
Instructions
List the contents of a directory (confined to the filesystem base). Returns files and subdirectories with sizes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path. Defaults to the WordPress root. |