Metis · Software Engineer — Analyze Script
analyze_scriptParse R or Python scripts to extract structured metadata including packages, variables, and dependencies using regex, without executing code or accessing data.
Instructions
Parse one R or Python script and extract structured metadata.
Returns packages, file reads/writes, variable names, source dependencies,
and transform patterns — all from regex parsing (no execution, no AST,
no data access). The script's code is read but never sent to an LLM;
only the extracted metadata is returned.
Args:
path: Absolute path to the script file (.R, .Rmd, .qmd, or .py).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |