get-search-view-results

Retrieve current search results from the VS Code Search view.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working in VS Code, the Search view may already contain results from a previous search, but an AI assistant has no direct visibility into them. This Skill lets the assistant read those existing search results so it can reason about matches without re-running a 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. - Command Execution via Tool: Runs the command through the copilot_runVscodeCommand tool with skipCheck set to true, since the command is known to exist. - Use Case: You searched your codebase for a function name and want the assistant to summarize or refactor all matching locations. The assistant pulls the current Search view results and works from them directly. ## 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. In a Copilot context, invoke it through the copilot_runVscodeCommand tool.

How to run a VS Code command from a Copilot skill?▼

Use the copilot_runVscodeCommand tool and pass the command ID as an argument. For known built-in commands, set the skipCheck argument to true to skip the existence check.

Does this skill perform a new search in VS Code?▼

No, it only reads results already present in the Search view from a previous search. To populate results, the user must run a search in VS Code first.

Why does getting search results return nothing in VS Code?▼

The Search view returns empty results when no search has been performed or results were cleared. Run a search in the Search view first, then invoke the command again.