apply_code_action
Apply a named SystemVerilog code action at a specified line in a file, with optional preview to inspect the diff before writing.
Instructions
Run the code action named title (from code_actions, prefix match ok) at line of file.
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>",
"line": "<line>",
"title": "<title>"
},
"name": "apply_code_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | SystemVerilog file path, absolute or relative to the workspace root | |
| line | Yes | 1-based line number | |
| title | Yes | ||
| symbol | No | Symbol text as written on that line | |
| preview | No | Return the diff without writing (default false) |