Metis · Software Engineer — Scan Project Scripts
scan_project_scriptsScan a folder's R/Python scripts to extract packages, variables, and file paths, automatically registering each as a code artifact and returning a summary.
Instructions
Walk all R/Python scripts in a folder, extract metadata, and register them.
For each script found (.R, .Rmd, .qmd, .py):
- Parses packages, file reads/writes, variables, and transforms
- Auto-registers each as a code_artifact in the Code Repository
- Aggregates variables across all scripts
- Maps detected file paths to dataset names
Returns a summary: N scripts, M packages, K datasets, P variables.
Args:
folder_path: Absolute path to the folder to scan.
project_id: Project ID to associate the scripts with (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | ||
| folder_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |