read_imports
Returns only a source file's import statements, includes, or Ruby requires so you can inspect dependencies before editing imports.
Instructions
Return the import statements of a source file (imports, includes, Ruby requires), without reading the rest. Read-only.
Use this when: checking a file's dependencies, as before add_import. Don't use this when: changing imports (add_import, remove_import).
Example: file_path="/abs/path/to/module.py"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the source or config file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |