List files
list_filesList files in a workspace directory using glob patterns. Filter by path, hidden status, or ignore rules, and sort results by path or modified time.
Instructions
List workspace files using glob filters.
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 |
|---|---|---|---|
| glob | No | ||
| path | No | . | |
| sort | No | path | |
| patterns | No | ||
| max_results | No | ||
| include_hidden | No | ||
| include_ignored | No | ||
| exclude_patterns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| error | No | ||
| files | No | ||
| warnings | No | ||
| truncated | No | ||
| output_bytes | No | ||
| output_lines | No | ||
| truncated_by | No |