add_import_name
Add a name to an existing Python 'from X import' statement. Use this tool to extend import lines without creating duplicates when the module is already imported.
Instructions
Add a name to an existing Python from <module> import a, b statement.
Python-only. Skips duplicates.
Use this when: The module is already imported via from X import ... and you
want to add another name to that existing line.
Don't use this when: The import statement doesn't exist yet -> use add_import.
Example: module="typing" name="Optional"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| module | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |