List files
list_filesLists files and directories in a workspace with type and size, with optional path, glob pattern, recursion, hidden-file inclusion, and entry limits.
Instructions
List files and directories in the workspace with their type and size.
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_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to list, relative to the root. | . |
| pattern | No | Glob matched against entry names, e.g. '*.py'. | * |
| recursive | No | Descend into subdirectories. | |
| max_entries | No | ||
| include_hidden | No | Include dotfiles and dot-directories such as .git. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| directory | Yes | ||
| truncated | Yes | True if more entries matched than were returned. |