get-search-view-results

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working in VS Code, search results in the Search view are not directly accessible to an AI assistant. This Skill lets the assistant read the current search results so it can reason about matches across your workspace. ## Core Features & Use Cases - Search Result Retrieval: Invokes the built-in VS Code command search.action.getSearchResults to fetch the active Search view results. - Command Execution: 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 workspace-wide text search in VS Code, ask the assistant to review the matches and summarize which files contain the target pattern. ## 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 VS Code search results programmatically?▼

Run the built-in VS Code command search.action.getSearchResults, which returns the current results shown in the Search view. An AI assistant can invoke it through the copilot_runVscodeCommand tool.

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

Use the copilot_runVscodeCommand tool and pass the command identifier, such as search.action.getSearchResults. Set the skipCheck argument to true when the command is known to exist to skip the existence check.

Does this work without existing search results in VS Code?▼

The command reads whatever is currently in the Search view, so a search must have been performed first. If no search has been run, there will be no results to retrieve.

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 built-in VS Code command, the check is unnecessary and skipping it avoids extra overhead.