yao/tools/webfetch/schema.json
Max 7da06a4ae1 feat(search): refactor builtinSearch to utilize websearch tool and enhance context handling
- Updated the builtinSearch function to delegate search operations to the websearch tool, improving modularity and maintainability.
- Enhanced context handling by passing the agent context to builtinSearch, allowing for user and team identification during searches.
- Added a new DecryptValue function in cloud.go to streamline value decryption, delegating to the existing config.DecryptValue method.
- Updated .gitignore to include tools/README.md for better project organization.
2026-05-02 19:58:03 +08:00

19 lines
571 B
JSON

{
"name": "webfetch",
"description": "Fetch a web page and return its content. Supports markdown and HTML output formats.",
"process": "tools.webfetch",
"inputSchema": {
"type": "object",
"properties": {
"url": { "type": "string", "description": "URL to fetch" },
"format": {
"type": "string",
"description": "Output format: markdown or html (default markdown)",
"enum": ["markdown", "html"],
"default": "markdown"
}
},
"required": ["url"]
},
"x-process-args": ["$args.url", "$args.format"]
}