List directory
list_dirList files and folders in the configured workspace, with optional recursive depth, sorting, hidden/ignored inclusion, and entry limits for bounded directory exploration.
Instructions
List directory entries inside the configured workspace.
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_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| sort | No | name | |
| max_depth | No | ||
| recursive | No | ||
| max_entries | No | ||
| include_hidden | No | ||
| include_ignored | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| error | No | ||
| entries | No | ||
| warnings | No | ||
| truncated | No | ||
| output_bytes | No | ||
| output_lines | No | ||
| truncated_by | No |