Agent mode tools in VS Code
AI Summary
Summary of Agent Mode in VS Code
Overview
- Agent mode allows GitHub Copilot to make code edits and invoke tools to assist with user requests.
Functionality of Tools
- Tools enhance Copilot’s capabilities, including:
- Searching the codebase
- Running terminal commands
- Reading files
Accessing Tools
- Switch to agent mode, click the tools icon to select/deselect available tools.
Built-in Tools
- Tools include:
- Codebase: references information in your codebase
- Fetch: fetches web data for context
- Example commands:
- Use
#fetch
followed by a URL to gather data.Extensions and MCP Servers
- Extensions
- Prompt Boost enhances prompts for better responses.
- Tools from extensions are accessible in agent mode.
- MCP (Model Context Protocol)
- Standardizes context provision among applications.
- Setup via
MCP.json
in VS Code folder.- Example: Add a Perplexity server for enhanced research capabilities.
Security Features
- Input variables protect sensitive information (e.g., API keys).
- User prompts are securely stored by VS Code.
Utilizing MCP Tools
- Invoke research tools through prompts (e.g., Perplexity research tool for front-end development).
- Users can automate tool confirmations to streamline their workflow.
Conclusion
- Leveraging agent mode enhances coding efficiency with powerful tools available without disrupting workflow.