get_project_files
Retrieves OpenSCAD project files with metadata and dependency references, or traces constant dependency graphs for upstream/downstream analysis.
Instructions
mode="files": every .scad under project_dir with size/mtime and the include/use/import/surface references of each. mode="trace": the constant dependency graph for symbol= (lexical, file-scope constants only): its definition, what depends on it (direction="downstream") or what it depends on ("upstream"), by depth, and the part files that use them. project_dir must be inside allowed_paths when configured.
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_dir": "<project_dir>"
},
"name": "get_project_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | files | |
| symbol | No | ||
| direction | No | downstream | |
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||