| name | websearch |
| description | Search the web using Kagi and fetch page contents. Use when you need current information, documentation, or to look up APIs/libraries. |
Web Search Skill
Search the web using Kagi and fetch/extract page contents.
Search
kagi-search "your query"
Returns search results with titles, URLs, and snippets.
JSON output with quick answer
kagi-search --json "your query"
Returns JSON with:
quick_answer.markdown — AI-generated summary
results[].title, results[].url, results[].snippet
Get more results
kagi-search --json --links 10 "your query"
Fetch a page
curl -sL "https://example.com" | head -500
For cleaner extraction from HTML, pipe through a text extractor or use curl with appropriate flags.
Typical workflow
- Search:
kagi-search --json "nix flake lock update single input" — get overview + links
- Fetch:
curl -sL "<url>" — get full page content from a promising result
- Use the information to answer the question or solve the task