insert_after_symbol
Insert code immediately after a named function or class, enabling you to add a new method or helper next to related code within a file.
Instructions
Insert code immediately after a named function or class. Useful for adding a new method or helper next to a related one.
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": {
"file": "<file>",
"symbol": "<symbol>",
"code": "<code>"
},
"name": "insert_after_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to insert (will be placed after the closing line of the symbol) | |
| file | Yes | Relative file path | |
| symbol | Yes | Name of the symbol to insert after |