- Refactored the initSandboxV2 function to return a structured result, consolidating the runner, computer, configuration, cleanup function, loading message ID, and roles into a single return type. - Updated the Stream method to utilize the new sandboxV2InitResult structure, improving clarity and reducing complexity in handling sandbox initialization. - Introduced role management enhancements, allowing for pre-resolved role connectors to be passed through the request, streamlining connector resolution during execution. - Adjusted various components to support the new roles structure, ensuring consistent handling across the agent's sandbox operations. - Added logging for connector resolution and role management, improving diagnostics and traceability during sandbox execution. - Updated .gitignore to include tools/TOOL-REGISTRATION.md for better project organization.
40 lines
1.2 KiB
Markdown
40 lines
1.2 KiB
Markdown
---
|
|
name: yao-web
|
|
description: Web information retrieval expert. ALWAYS invoke this skill when the user needs to search the web, fetch a URL, or access real-time information beyond training data. Do not guess or use stale knowledge — use this skill first.
|
|
---
|
|
|
|
# Web Tools
|
|
|
|
Two tools for web information retrieval, called via bash.
|
|
|
|
## web_search
|
|
|
|
Search the web for real-time information. Returns structured results with title, URL, and content snippet.
|
|
|
|
```bash
|
|
tai tool web_search '{"query": "search terms", "limit": 5}'
|
|
```
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|----------|-------------|
|
|
| `query` | string | yes | Search query |
|
|
| `limit` | integer | no | Max results (default 10) |
|
|
|
|
## web_fetch
|
|
|
|
Fetch a web page and return its content in readable format.
|
|
|
|
```bash
|
|
tai tool web_fetch '{"url": "https://example.com", "format": "markdown"}'
|
|
```
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|----------|-------------|
|
|
| `url` | string | yes | Fully-formed URL to fetch |
|
|
| `format` | string | no | `markdown` (default) or `html` |
|
|
|
|
## Guidelines
|
|
|
|
- Use web_search to discover URLs, then web_fetch to read the content
|
|
- Include the current year when searching for recent information
|
|
- All output is JSON
|