List Directory
list_directoryList files and directories in a specified path, showing type and size in bytes.
Instructions
List entries in a directory with type (file/dir) and size.
Args:
path (string): Directory path (default current working directory).
Returns a list of { name, type, size_bytes }.
Example: { "path": "~/project/src" }
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 | . |