List code files
list_code_filesLists project files and folders with sizes and extensions, optionally scoped to a subpath. Skips vendor/build directories and controls depth for a clear view of code structure.
Instructions
List files and folders under the project's codeLocation (optionally a subpath), with sizes and extensions. Skips vendor/build dirs (node_modules, .git, dist, …). depth controls how many levels to expand. Sandboxed to codeLocation.
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": {
"project": "<project>"
},
"name": "list_code_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels to expand (1 = just this dir). | |
| project | Yes | ||
| subpath | No | Directory under codeLocation to list (default: root). |