list_files
Lists source files in the code graph by path with module ID, language and layer; filter by path pattern to find files or review repository contents.
Instructions
Lists the source files the graph holds, sorted by path: one line per file with its module ID, language and architecture layer, then a count. Use it to see what the repository contains, or to find a file by a part of its path: pattern is literal text with optional .* wildcards, matched anywhere in the path (tests/.*pricing); without it every file is listed. Only source files of the supported languages are in the graph. For what one file defines use describe_module; for its text use read_source. A long list stops at 200 items unless all is true.
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 |
|---|---|---|---|
| all | No | List everything instead of stopping at 200 items. | |
| pattern | No | Part of a path; literal text with optional .* wildcards. Without it every file is listed. |