get-search-view-results

Retrieve current search results from the VS Code Search view.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill get-search-view-results-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: get-search-view-results
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/extensions/copilot/assets/prompts/skills/get-search-view-results
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill get-search-view-results-cokistudios

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 found across your workspace. ## Core Features & Use Cases - Read Search View State: Invokes the built-in VS Code command search.action.getSearchResults to fetch the active search results. - 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: After performing a workspace-wide text search in VS Code, ask the assistant to summarize or act on the matches without manually copying results. ## Quick Start Ask the assistant to get the current search results from the Search view in VS Code.

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. In a Copilot context, execute it through the copilot_runVscodeCommand tool with the skipCheck argument set to true.

What is the search.action.getSearchResults command in VS Code?▼

It is a built-in VS Code command that returns the current results from the Search view. It can be invoked programmatically to access matches from an existing workspace search.

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, the check is unnecessary and can be skipped.

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

The command reads whatever state the Search view currently holds. If no search has been performed, there will be no results to return, so run a workspace search first.