add_import
Add import statements to files without creating duplicates. Automatically inserts after the last existing import.
Instructions
Add an import statement to a file. Automatically checks for duplicates and inserts after the last existing import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path | |
| import_statement | Yes | Full import statement to add (e.g. "import { useState } from 'react'") |