Skip to content

Improve web-search warning for Copilot engine with Tavily documentation#1269

Merged
pelikhan merged 6 commits intomainfrom
copilot/fix-copilot-web-search-availability
Oct 6, 2025
Merged

Improve web-search warning for Copilot engine with Tavily documentation#1269
pelikhan merged 6 commits intomainfrom
copilot/fix-copilot-web-search-availability

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 6, 2025

Problem

When users try to use the web-search tool with the Copilot engine, they receive an unhelpful warning message:

⚠ Engine 'copilot' does not support the web-search tool

This warning doesn't provide users with any actionable next steps or alternatives, leading to confusion about how to add web search capabilities to their workflows.

Solution

This PR enhances the user experience by:

  1. Adding a documentation link to the warning message - Users now see:

    ⚠ Engine 'copilot' does not support the web-search tool. 
      See https://githubnext.github.io/gh-aw/guides/web-search/ for alternatives.
    
  2. Creating focused documentation at /guides/web-search/ covering Tavily Search with mentions of other alternatives

  3. Providing complete setup guide, including:

    • Example workflow configurations
    • API key setup instructions
    • Links to Terms of Service
    • MCP configuration best practices
    • Brief mentions of other alternatives (Exa, SerpAPI, Brave Search)
  4. Updating related documentation to reference the new guide in engines.md and tools.md using proper Astro Starlight adornments syntax

Changes Made

  1. Enhanced Warning Message: Updated pkg/workflow/compiler.go to include documentation link
  2. New Documentation: Created docs/src/content/docs/guides/web-search.md with:
    • Focus on Tavily Search (AI-optimized search for LLM applications)
    • Acknowledgment of other alternatives (Exa, SerpAPI, Brave Search) without detailed documentation
    • Complete Tavily setup guide with example workflows
    • Streamlined to 111 lines for clarity
  3. Updated References:
    • Updated engines.md with Astro Starlight :::note adornments
    • Updated tools.md with Astro Starlight :::note adornments
  4. Test Coverage: Updated search_integration_test.go to verify the warning includes the documentation link

Example Usage

After this change, users can easily add web search to Copilot workflows using the Tavily MCP server:

---
on: issues
engine: copilot
mcp-servers:
  tavily:
    command: npx
    args: ["-y", "@tavily/mcp-server"]
    env:
      TAVILY_API_KEY: "${{ secrets.TAVILY_API_KEY }}"
    allowed: ["search", "search_news"]
---

# Search and Respond

Search for: ${{ github.event.issue.title }}
Use the tavily search tool to find recent information.

Testing

  • Updated TestWebSearchValidationForCopilot to verify the warning includes the documentation link
  • All existing tests continue to pass
  • Manual testing confirms the improved warning message is displayed correctly

Fixes #1267

Original prompt

This section details on the original issue you should resolve

<issue_title>"web-search" is reported as not available when using Copilot CLI</issue_title>
<issue_description>
Currently all the agentics samples give a warning:

$ ./gh-aw add githubnext/agentics/daily-test-improver
Package githubnext/agentics already exists. Updating...
Successfully installed package: githubnext/agentics
Added workflow: /home/dsyme/gh-aw/.github/workflows/daily-test-improver.md
⚠ Engine 'copilot' does not support the web-search tool
ℹ Optional include file not found: githubnext/agentics/agentics/build-tools.md@f2322bb93b5fe0f52bc82cff7959ddc9da2d9f5d. You can create this file to configure the workflow.
ℹ Optional include file not found: githubnext/agentics/agentics/daily-test-improver.config.md@f2322bb93b5fe0f52bc82cff7959ddc9da2d9f5d. You can create this file to configure the workflow.
✓ .github/workflows/daily-test-improver.md (186.7 KB)

Note

⚠ Engine 'copilot' does not support the web-search tool

We should engage with Copilot CLI on this and give a better more useful warning

  1. Emit a link in the warning to a new doc page
  2. On the doc page document the options for using 3rd-party MCPs (choose a couple, document them, link to their terms of service and auth needs etx)
  3. Engage with Copilot CLI </issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #1250

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot only document Tavily

Copilot AI changed the title [WIP] Fix web-search availability issue in Copilot CLI Improve web-search warning for Copilot engine with documentation and MCP alternatives Oct 6, 2025
Copilot AI requested a review from pelikhan October 6, 2025 19:18
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Oct 6, 2025

@copilot only document Tavily

Updated the documentation to only include Tavily. Removed Exa, SerpAPI, and Brave Search sections. The guide is now focused and simplified (149 lines vs 290 lines).

Changes in commit 1bce0a4

Copilot AI changed the title Improve web-search warning for Copilot engine with documentation and MCP alternatives Improve web-search warning for Copilot engine with Tavily documentation Oct 6, 2025

The Copilot engine doesn't require explicit network permissions as MCP servers run with network access by default.

## Troubleshooting
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove section

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the Troubleshooting section. Documentation reduced from 149 to 109 lines.

Changes in commit f8c7a3e

- **`version`** (optional): Version of the GitHub Copilot CLI to install (defaults to `latest`)

**Note:** The Copilot engine does not support the `web-search` tool. Use Claude or Codex engines if you need web search capabilities.
**Note:** The Copilot engine does not have built-in `web-search` support. You can add web search capabilities using third-party MCP servers. See the [Web Search with MCP guide](/gh-aw/guides/web-search/) for available options and setup instructions.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use Astro Starlight adornments syntax

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use Astro Starlight adornments syntax (:::note).

Changes in commit d7f8b2a

# bash: ["echo", "ls", "git status"] # Or specify custom commands
```

**Note:** Some engines (like Copilot) don't have built-in `web-search` support. You can add web search using third-party MCP servers instead. See the [Web Search with MCP guide](/gh-aw/guides/web-search/) for options.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use Astro Starlight adornments syntax

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use Astro Starlight adornments syntax (:::note).

Changes in commit d7f8b2a

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

## Overview

Some AI engines (like Copilot) don't include built-in web search functionality. To add web search capabilities to these workflows, you can integrate the Tavily MCP server that provides AI-optimized search functionality.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot update wording they are many other alternatives, cite some but do not document them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the Overview section to acknowledge other alternatives (Exa, SerpAPI, Brave Search) while keeping the focus on Tavily documentation.

Changes in commit a9f4e1c

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan October 6, 2025 19:53
@pelikhan pelikhan marked this pull request as ready for review October 6, 2025 19:58
@pelikhan pelikhan merged commit b67ed66 into main Oct 6, 2025
30 of 35 checks passed
@pelikhan pelikhan deleted the copilot/fix-copilot-web-search-availability branch October 6, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"web-search" is reported as not available when using Copilot CLI Scout create issues

2 participants