list_directory
List all files and folders in a directory, optionally including hidden files. Defaults to the current working directory if no path is given.
Instructions
List the contents of a directory.
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 to list. Defaults to the current working directory. | . |
| show_hidden | No | If True, include hidden files (names starting with "."). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||