Metis ยท Software Engineer โ Scan Project Scripts
scan_project_scriptsScan a folder of R and Python scripts to extract metadata, register code artifacts, and aggregate variables and datasets. Returns a summary of scripts, packages, datasets, and variables.
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 |