File List
file_listLists files and folders in a local directory. Defaults to the user's home directory. Returns name, path, type (file/directory), size, and modification date for each item. Sorted: directories first, then files, both alphabetically.
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": "file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the directory. Defaults to the home directory (~) if omitted. | |
| show_hidden | No | Include hidden files (starting with '.'). Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirs | No | ||
| path | No | ||
| count | No | ||
| files | No | ||
| items | No |