yao/tools/websearch/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

18 lines
529 B
JSON

{
"name": "websearch",
"description": "Search the web for real-time information. Returns structured results with title, URL, and content snippet.",
"process": "tools.websearch",
"inputSchema": {
"type": "object",
"properties": {
"query": { "type": "string", "description": "Search query" },
"limit": {
"type": "integer",
"description": "Max results (default 10)",
"default": 10
}
},
"required": ["query"]
},
"x-process-args": ["$args.query", "$args.limit"]
}