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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "optimize_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the source file | |
| usedSymbols | No | Symbols actually used in the context |