optimize_imports
Minimizes token usage and improves efficiency by analyzing and optimizing import statements in source files for TypeScript/JavaScript, Python, Go, and Rust.
Instructions
Analyze and optimize import statements to reduce redundancy
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Path to the source file | |
usedSymbols | No | Symbols actually used in the context |
Input Schema (JSON Schema)
{
"properties": {
"filePath": {
"description": "Path to the source file",
"type": "string"
},
"usedSymbols": {
"description": "Symbols actually used in the context",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"filePath"
],
"type": "object"
}