list_dir
Lists files and subdirectories inside a specified absolute directory path, including across Local, Remote-SSH, WSL, and Dev Container VS Code workspaces.
Instructions
List the subdirectories and files inside a directory (works across Local and Remote-SSH/WSL workspaces).
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": {
"DirectoryPath": "<DirectoryPath>"
},
"name": "list_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| DirectoryPath | Yes | The absolute path of the directory to list. |