optimize_memory
Detect memory leaks in your code and get actionable suggestions for memory-efficient patterns.
Instructions
Detect memory leaks and suggest memory-efficient patterns
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": {
"path": "<path>"
},
"name": "optimize_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory or file path to analyze | |
| detectLeaks | No | Check for memory leaks | |
| suggestFixes | No | Provide fix suggestions |