Copilot Tool Toggle
Control your AI agent's context. Choose which built-in tools Copilot Agent Host can use, without editing settings.json by hand. Switch between presets from the VS Code status bar, or toggle individual tools in a theme-aware editor.
Built-in Copilot tools currently appear as Always Available in Chat: Open Customizations → Tools → Copilot. CTT lets you manage their exclusions while native controls are being requested.
Features
- Quick presets: Lean disables subagent and canvas tools; Full clears all user-defined tool exclusions.
- Custom presets: Choose tools with switches, save a named preset, and select it later from the status bar.
- Tool editor: See grouped tools, descriptions, and approximate token counts. Essential tools require confirmation before being disabled.
- Careful configuration updates: Preserve other model settings and unrelated fields in
modelCapabilityOverrides.
Install
Install Copilot Tool Toggle from the VS Code Marketplace, or search for Copilot Tool Toggle in the Extensions view. Requires VS Code 1.148+.
Use
- Click Copilot Tool Toggle on the right side of the status bar. Choose Lean, Full, a saved preset, or Customize presets.
- In the editor, On means enabled. Switches modify a draft; Apply writes it to your user settings. Save as preset stores the draft without applying it. Reset to Full turns everything on in the draft; click Apply to save the change.
- Start a chat with New chat or
+ in Chat. Changes affect only chats created afterward. Even an empty chat created before the switch keeps its original tools; restarting VS Code is unnecessary.
Lean excludes task, read_agent, write_agent, list_agents, list_canvas_capabilities, open_canvas, and invoke_canvas_action. It leaves ask_user and session_store_sql enabled. Full removes every entry from excludedTools.
Commands and settings
Find commands under Copilot Tool Toggle: in the Command Palette: pick or apply a preset, open the editor, add a tool by name, or open user settings JSON. For a keybinding, call copilotToolToggle.applyPreset with the preset name as its argument.
| Setting |
Purpose |
copilotToolToggle.sortBy |
Tool order: group (default), tokens, or name. |
copilotToolToggle.presets |
Define named presets in settings, e.g. { "withoutCanvas": ["open_canvas"] }. |
copilotToolToggle.showStatusBar |
Show or hide the status-bar item (default: true). |
Presets saved from the editor take precedence over settings-defined presets of the same name. Lean and Full are reserved names.
How it works and limitations
CTT updates only chat.agentHost.copilot.modelCapabilityOverrides["*"].excludedTools in the user settings of the active VS Code profile. Lean and custom presets preserve exclusions for names outside the catalog; Full and Reset to Full clear them. Other models and fields, including availableTools, are left intact. If availableTools is set, CTT displays a warning; its precedence over exclusions in Agent Host has not been verified.
The editor shows approximate, dated tool-definition token counts from a user measurement on October 29, 2026 (for example, task ≈ 6,360 tokens). Where no measurement exists, it tries VS Code's public tool metadata and model tokenizer, then a character-count estimate if available. Counts vary by model and runtime; they are not a promise of tokens saved per request. Sources are shown in the editor and the Copilot Tool Toggle output channel.
The catalog is intentionally limited: it does not enumerate every browser, session, MCP, or extension-provided tool. In the tested configuration, write_bash and apply_patch were not offered, so they appear without switches; another model might offer them. Aliases such as powershell and rg are not disabled automatically. Disabling essential tools can make the agent unable to read files or execute commands.
Updating this setting can remove comments inside its JSON object; comments elsewhere in settings.json were preserved in testing. CTT runs as a UI extension. Remote SSH/WSL behavior has not been tested. It does not send telemetry or make network requests.