#5061: fix(tools): add group:web to coding profile
agents
Cluster:
Tool and Plugin Enhancements
## Summary
- The `coding` profile was missing `group:web`, which caused `web_fetch` and `web_search` tools to be unavailable to embedded agents even when explicitly enabled in config
- Developers using the coding profile often need to fetch documentation and search for solutions
## Problem
When using `tools.profile: "coding"` with `tools.allow: ["web_fetch", "web_search"]`, the web tools would not be exposed to the embedded agent because the coding profile's allowlist didn't include them.
The tool was being called on the gateway (visible in logs) but returned "Tool not found" because it wasn't in the agent's tool schema.
## Fix
Added `group:web` to the coding profile's allow list, which includes `web_search` and `web_fetch`.
## Test plan
- [x] Verified existing tests pass
- [x] Manual test: embedded agent with coding profile can now use web_fetch
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the `coding` tool profile allowlist in `src/agents/tool-policy.ts` to include `group:web`, ensuring `web_search` and `web_fetch` are available to embedded agents when developers enable them in config. This aligns the profile’s default capabilities with common “coding” workflows that require looking up documentation or examples, and prevents “Tool not found” errors caused by the agent schema omitting web tools.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- The change is a small, targeted allowlist addition (`group:web`) to an existing tool profile and does not alter tool execution logic; the main effect is enabling intended web tools in the coding profile.
- No files require special attention
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#23582: fix(tool-policy): add group:fs and group:runtime to group:openclaw
by arosstale · 2026-02-22
75.8%
#10975: fix: add missing clientTools parameter to runEmbeddedAttempt call
by xamdel · 2026-02-07
74.0%
#12665: fix(tools): recognise tool groups that expand to plugin tools in al...
by mcaxtr · 2026-02-09
73.0%
#14368: fix: skip auth profile cooldown on format errors to prevent provide...
by koatora20 · 2026-02-12
72.9%
#16064: feat: add contact-based tool permissions with verification
by jamiequint · 2026-02-14
72.8%
#14734: test(agents): guard against stale allowAgents in existing sessions
by davidahmann · 2026-02-12
72.5%
#9339: fix: enhance OpenAI compatibility for tool calling
by 0xrushi · 2026-02-05
71.4%
#7874: docs: add public/untrusted agent profile
by ichbinlucaskim · 2026-02-03
71.3%
#9337: fix: correct GLM MCP web-search-prime API parameter name and respon...
by shoa-lin · 2026-02-05
71.3%
#11854: fix: resolve per-agent tools.exec config in pi-tools
by Yida-Dev · 2026-02-08
71.3%