read_project_scripts
Retrieve every project script (cell and object) in one call for whole-project audits, refactors, or tracing where things are wired. Optionally restrict by target or cell.
Instructions
Dump every script in the project (cell scripts + object scripts, all tabs) in one call. Use this for whole-project audits, refactors, or "find every place X is wired" questions where you need the surrounding code, not just matching lines (use search_scripts when you only need matching lines). Returns a flat array of {target, scriptName, code, lineCount}, sorted scene-order. Skips empty scripts by default. Soft byte cap (default 50000) bounds the response — if exceeded, returns what fits plus a truncation marker; refine via cellName or targets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | No | Optional: restrict to a list of targets. Each entry is either an object name (e.g., "HAB") or "cell:Label" for a cell script. Default: all targets. | |
| cellName | No | Optional: restrict to a single cell (by label). Default: all cells. | |
| maxBytes | No | Optional: soft cap on response size in bytes (default 200000). When exceeded, the response includes a truncation marker and skipped-entry summary. | |
| includeEmpty | No | Optional: include empty scripts (default false). |