craftos_list_files
Recursively list workspace files and folders to find project programs and tests before running them; returns workspace-relative paths, kinds, and sizes for reading files.
Instructions
List the files and folders under a workspace folder, recursively. Returns {path, kind, size} entries with workspace-relative paths, ready for craftos_read_file. Use it to find a project's programs and tests before running them. Paths that leave the workspace are refused.
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": "craftos_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder to list, workspace-relative (default "." lists everything). | . |