get-search-view-results

Retrieves current search results from the VS Code Search view via command.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/jimeh/hucode --skill get-search-view-results-jimeh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: get-search-view-results
Source: https://github.com/jimeh/hucode/tree/main/extensions/copilot/assets/prompts/skills/get-search-view-results
Command: npx skills add https://github.com/jimeh/hucode --skill get-search-view-results-jimeh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working in VS Code, the Search view may already contain results that an AI assistant cannot see directly. This Skill lets the assistant read those existing search results so it can reason about them without re-running the search. ## Core Features & Use Cases - Read Existing Search Results: Invokes the built-in VS Code command search.action.getSearchResults to fetch whatever is currently shown in the Search view. - Copilot Tool Integration: Runs the command through the copilot_runVscodeCommand tool with skipCheck set to true, since the command is known to exist. - Use Case: After performing a project-wide text search in VS Code, ask the assistant to summarize or act on the matches without repeating the search query. ## Quick Start Ask the assistant to get the current search results from the VS Code Search view and summarize the matches.

Frequently Asked Questions about get-search-view-results

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get search results from the VS Code Search view programmatically?▼

Run the built-in VS Code command search.action.getSearchResults, which returns the results currently shown in the Search view. Within Copilot, invoke it through the copilot_runVscodeCommand tool.

How to read existing VS Code search results with GitHub Copilot?▼

Use the copilot_runVscodeCommand tool to execute search.action.getSearchResults. Pass the skipCheck argument as true so the tool skips verifying the command's existence, since it is a known built-in command.

Does this work if the Search view has no results?▼

The command returns whatever the Search view currently holds, so if no search has been run there is nothing to retrieve. Run a search in the Search view first before requesting its results.

Why pass skipCheck as true to copilot_runVscodeCommand?▼

The skipCheck argument bypasses the tool's verification that the command exists. Since search.action.getSearchResults is a known built-in VS Code command, skipping the check avoids an unnecessary validation step.