docs(backend/copilot): document web_search and web_fetch in tool supplement

Add clear documentation for web_search and web_fetch to the shared tool notes
that get appended to all system prompts (Langfuse or default). This ensures
the copilot knows to use web_search for general web queries instead of
incorrectly using find_block to search for web search blocks.

- web_search: For current information beyond knowledge cutoff
- web_fetch: For retrieving content from specific URLs
This commit is contained in:
Zamil Majdy
2026-03-06 22:43:30 +07:00
parent 89ed628609
commit 7774717104

View File

@@ -151,6 +151,13 @@ _HEARTBEAT_INTERVAL = 10.0 # seconds
# which has kernel-level network isolation (unshare --net).
_SHARED_TOOL_NOTES = """\
### Web search and research
- **`web_search(query)`** — Search the web for current information (uses Claude's
native web search). Use this when you need up-to-date information, facts,
statistics, or current events that are beyond your knowledge cutoff.
- **`web_fetch(url)`** — Retrieve and analyze content from a specific URL.
Use this when you have a specific URL to read (documentation, articles, etc.).
### Sharing files with the user
After saving a file to the persistent workspace with `write_workspace_file`,
share it with the user by embedding the `download_url` from the response in