feat: web_featch tool support remote file url

This commit is contained in:
zhayujie
2026-03-11 17:16:39 +08:00
parent 1767413712
commit 4fec55cc01
2 changed files with 321 additions and 14 deletions

View File

@@ -366,7 +366,7 @@ class AgentInitializer:
if tool:
# Apply workspace config to file operation tools
if tool_name in ['read', 'write', 'edit', 'bash', 'grep', 'find', 'ls']:
if tool_name in ['read', 'write', 'edit', 'bash', 'grep', 'find', 'ls', 'web_fetch']:
tool.config = file_config
tool.cwd = file_config.get("cwd", getattr(tool, 'cwd', None))
if 'memory_manager' in file_config: