inline
Replace a method, variable, or parameter at a given LSP position with its definition or value. Detects the symbol kind automatically and offers dry-run preview before applying edits.
Instructions
Inline the method, variable, or parameter at a Position — the server detects which kind, so just point at the name (0-based LSP line/character, UTF-16 units). Methods and variables: every certain use is replaced by the body or value; remove_definition=false keeps the definition; only_current_occurrence=true inlines just the occurrence at the Position. Parameters: the default value is written into call sites that omit it. Defaults to a Dry Run preview; set apply=true to write. Supply expected_symbol when edits may have intervened since your LSP answer, so a stale Position fails safely instead of inlining the wrong thing. Locate the definition with your LSP first; this tool only changes code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| line | Yes | ||
| root | No | ||
| apply | No | ||
| character | Yes | ||
| expected_symbol | No | ||
| remove_definition | No | ||
| only_current_occurrence | No | ||
| in_docstrings_and_comments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||