code_folder_files
Lists a workspace folder's direct files—sorted, paged, and filterable by name—with paths, sizes, and line counts, so you can inspect one folder without subfolders.
Instructions
Lists the files directly inside one folder of a workspace (not its subfolders), sorted by name and paged, each with its path, size and line count. Each file is marked small (read it with code_read) or large (use code_outline + code_method). Optionally only names that contain some text. Files tools may not open (build output, .git, secrets, keys, the workspace's access rules) are not listed. A folder that does not exist is an error. Reads only. WHEN TO USE: code_skeleton showed a folder as collapsed or too big to list, or you need every file of one folder, e.g. all 'Transaction' files in Entities/Exchange. For the folder tree use code_skeleton; to find a type or member anywhere use code_search; for text inside files use code_grep. RETURNS: 'Showing N of M file(s) - page p/q', the files, and the call for the next page.
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": {
"workspace": "<workspace>",
"folderPath": "<folderPath>"
},
"name": "code_folder_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Optional: page number, starting at 1 (default 1) | |
| guide | No | true: put the code guide first in the result. Use on your first code call, or when told it changed. | |
| pageSize | No | Optional: files per page (default 50, at most 200) | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) | |
| folderPath | Yes | Folder path relative to the workspace root (e.g. 'Entities/Exchange', 'Controllers'). '.' is the root. | |
| searchPattern | No | Optional: text the file NAME must contain, any letter case, e.g. 'Company' or '.cs'. Plain text, not a glob ('*' is not a wildcard). Leave empty to list all. |