get_selection
Retrieve the code snippet currently highlighted in VS Code, including file path, line range, and selected text. Use it to reference 'this code' when discussing or presenting walkthroughs.
Instructions
Get the code the user has selected or highlighted in VS Code — returns file path, line range, and selected text. Use when the user refers to 'this code', 'what I've selected', 'the highlighted block', or before calling walkthrough/show_code when the user has already selected the code they want to discuss. Returns an empty selection object when nothing is highlighted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||