List Directory
fc_list_directoryLists files and subdirectories in a specified directory, with optional recursion depth and hidden-file display, so you can inspect folder contents.
Instructions
Lists files and subdirectories.
Args:
path (string): Path to the directory
depth (number, optional): Maximum depth for recursive listing (default: 1)
show_hidden (boolean, optional): Show hidden files
Returns:
Formatted list of all entries with icons
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": {
"path": "<path>"
},
"name": "fc_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the directory | |
| depth | No | Recursion depth | |
| show_hidden | No | Show hidden files |