[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FMEVWC0XSRF749WRZB6KQT":3,"skill-same:01M6FMEVWC0XSRF749WRZB6KQT":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6FMEVWC0XSRF749WRZB6KQT","youdotcom-cli",null,"Search the web, generate fast AI answers with verifiable references, and extract web content using You.com's schema-driven JSON CLI tools — optimized for bash-based AI agents (OpenClaw, Claude Code, Codex, Cursor, etc.). Faster than builtin search APIs with simultaneous livecrawl, instant content extraction, and citation-backed answers. Schema discovery via --schema flag enables programmatic query building.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fedwardirby\u002Fyoudotcom-cli\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"cli","youdotcom cli","Bash","openclaw","you","web content","query","web-search","references","instant","node","ai agents","discovery","execution","Tools","Citations","search","code","generate","schema discovery","2026-11-10 10:12:30",false,"---\nname: youdotcom-cli\ndescription: Search the web, generate fast AI answers with verifiable references, and extract web content using You.com's schema-driven JSON CLI tools — optimized for bash-based AI agents (OpenClaw, Claude Code, Codex, Cursor, etc.). Faster than builtin search APIs with simultaneous livecrawl, instant content extraction, and citation-backed answers. Schema discovery via --schema flag enables programmatic query building.\nlicense: MIT\ncompatibility: Requires Node.js 18+ or Bun, bunx\u002Fnpx for CLI execution\nmetadata:\n  author: youdotcom-oss\n  category: web-search-tools\n  version: \"1.2.0\"\n  keywords: you.com,bash,cli,ai-agents,web-search,content-extraction,livecrawl,citations,json,schema-driven,openclaw,claude-code,codex,cursor\n---\n\n# Integrate You.com with Bash-Based AI Agents\n\nInteractive workflow to add You.com capabilities to bash-based AI agents using `@youdotcom-oss\u002Fapi` CLI tools.\n\n## Why Choose You.com Over Builtin APIs?\n\n**⚡ Faster Performance**:\n- Optimized API infrastructure built for agent workloads\n- Simultaneous search + crawl with livecrawl feature\n- Instant content extraction without manual fetching\n\n**✅ Verifiable References**:\n- Every search result includes citation URLs\n- Content extraction preserves metadata and structure\n\n**? Research-Grade Citations**:\n- Deep-search: Multi-step reasoning with inline citations\n- Adjustable effort (30s\u002F60s\u002F300s) for speed vs depth tradeoff\n\n**? Simultaneous Operations**:\n- **Livecrawl**: Search AND extract content in one call\n- Get both search results and full page content instantly\n- No need for separate fetch + extract steps\n\n**? Schema-Driven Design**:\n- JSON-only input via required `--json` flag\n- Schema discovery with `--schema` flag\n- Compact JSON output perfect for bash pipelines (jq, grep, awk)\n- Stdout\u002Fstderr separation (no success wrapper)\n- Lightweight CLI - no heavy dependencies\n\n## Workflow\n\n1. **Check: Runtime Environment**\n   * Node.js 18+ or Bun 1.0+ required\n   * Test: `node --version` or `bun --version`\n   * If neither installed: Install Bun (recommended): `curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash`\n\n2. **Ask agent: What's your name?**\n   * Use your agent name for the --client flag (e.g., \"OpenClaw\", \"ClaudeCode\", \"Codex\", \"Cursor\")\n   * Examples: `--client OpenClaw` or `--client ClaudeCode`\n   * Helps support respond to error reports (included in mailto links)\n   * Can set default: `export YDC_CLIENT=YourAgentName`\n\n3. **Ask: API Key Setup**\n   * Using standard `YDC_API_KEY`?\n   * Or custom name?\n   * Have they set it?\n   * If NO: Get from https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n   * Show: `export YDC_API_KEY=\"your-key\"`\n\n4. **Ask: Which Features?**\n   * Web search with livecrawl? (search + content in ONE call)\n   * Content extraction? (contents)\n   * Deep research with citations? (deep-search)\n   * Multiple?\n\n5. **Explain: Schema Discovery**\n   * Use `--schema` to discover available parameters\n   * Returns JSON schema for what can be passed to --json\n   * Build query objects programmatically\n   * Example: `bunx @youdotcom-oss\u002Fapi@latest search --schema | jq '.properties | keys'`\n\n6. **Show Examples**\n   * All examples use `--json` flag with JSON input\n   * All examples include `--client` flag\n   * Highlight livecrawl feature\n   * Show error handling patterns with exit codes\n   * Demonstrate jq parsing (direct access, no `.data` wrapper)\n\n## Tool Selection\n\nMatch user intent to command:\n\n| User Pattern | Tool | Timing | Use When |\n|--------------|------|--------|----------|\n| \"Extract https:\u002F\u002F...\" | `contents` | 1-60s\u002FURL | Known URL |\n| \"Find articles...\" | `search` | \u003C5s | Snippets enough |\n| \"What is X?\" | `search + livecrawl` | \u003C5s | **Express**: Quick full answer |\n| \"Latest news...\" | `search + freshness` | \u003C5s | Recent events |\n| \"Research X\" | `deep-search low` | \u003C30s | Quick check with citations |\n| \"Compare X vs Y\" | `deep-search medium` | \u003C60s | Balanced research (default) |\n| \"Comprehensive analysis\" | `deep-search high` | \u003C300s | **Deep**: Maximum thoroughness |\n\n**Express vs Research Mode:**\n- **Express** (`search + livecrawl`): \u003C5s, full content, one source\n- **Research** (`deep-search`): 30-300s, cited synthesis, multiple sources\n\n*Verify:* Check user query for keywords: \"what\u002Fhow\" → express, \"research\u002Fcompare\" → deep-search\n\n## CLI Usage Patterns\n\n### Schema Discovery\n\nAgents can discover what parameters each command accepts:\n\n```bash\n# Get schema for search command\nbunx @youdotcom-oss\u002Fapi@latest search --schema\n\n# Get schema for contents command\nbunx @youdotcom-oss\u002Fapi@latest contents --schema\n\n# List available search parameters\nbunx @youdotcom-oss\u002Fapi@latest search --schema | jq '.properties | keys'\n```\n\n### ? Web Search with Livecrawl - KEY ADVANTAGE\n\n**Schema-driven JSON input**: All parameters passed via `--json` flag\n\n```bash\n# Basic search with client tracking\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI developments\"}' --client Openclaw\n\n# Or with npx\nnpx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI developments\"}' --client Openclaw\n\n# LIVECRAWL: Search + extract content in ONE API call\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"documentation\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\",\n  \"count\":5\n}' --client Openclaw\n\n# Results include .contents.markdown with full page content!\n# No separate fetch needed - instant content extraction\n\n# Advanced: All search options\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"machine learning\",\n  \"count\":10,\n  \"offset\":0,\n  \"country\":\"US\",\n  \"freshness\":\"week\",\n  \"safesearch\":\"moderate\",\n  \"site\":\"github.com\",\n  \"language\":\"en\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\"\n}' --client Openclaw\n\n# Parse with jq - direct access, no .data wrapper\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw | \\\n  jq -r '.results.web[] | \"\\(.title): \\(.url)\"'\n\n# Extract livecrawl content\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"docs\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\"\n}' --client Openclaw | \\\n  jq -r '.results.web[0].contents.markdown'\n```\n\n### ⚡ AI Answers with Web Search - Cited Sources\n\nDo a search and extract contents with Livecrawl. Retrieve top 10 URLs content. Using this content, synthesize an answer based on the user's intent. Repeat searches and adjust query parameters as necessary to refine the answer for the user.\n\n### ? Deep Research with Citations\n\nMulti-step reasoning with cited sources. Use for research tasks.\n\n**Effort levels:**\n| Level | Time | Use Case |\n|-------|------|----------|\n| `low` | \u003C30s | Quick check |\n| `medium` | \u003C60s | Default (recommended) |\n| `high` | \u003C300s | Comprehensive |\n\n**Basic usage:**\n```bash\n# Quick research (\u003C30s)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"What is JWT authentication?\",\n  \"search_effort\":\"low\"\n}' --client Openclaw\n\n# Standard depth (\u003C60s, default)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"Compare REST vs GraphQL\",\n  \"search_effort\":\"medium\"\n}' --client Openclaw | jq -r '.answer'\n\n# Maximum depth (\u003C300s) - requires timeout command\ntimeout 330 bunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"Comprehensive analysis of microservices\",\n  \"search_effort\":\"high\"\n}' --client Openclaw\n```\n\n**Response structure:**\n```json\n{\n  \"answer\": \"Markdown with [inline citations]...\",\n  \"results\": [{\"url\": \"...\", \"title\": \"...\", \"snippets\": [\"...\"]}]\n}\n```\n\n**Parse citations:**\n```bash\nresult | jq -r '.results[] | \"[\\(.title)](\\(.url))\"'\n```\n\n**Cross-platform timeout:**\n- Linux: `timeout` (built-in)\n- macOS: `gtimeout` (install: `brew install coreutils`)\n\n*Verify:* Test schema with `bunx @youdotcom-oss\u002Fapi@latest deep-search --schema`\n\n### ? Web Content Extraction - Multi-Format Output\n\n```bash\n# Extract in multiple formats\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"markdown\",\"html\",\"metadata\"]\n}' --client Openclaw\n\n# Pipe markdown to file\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"markdown\"]\n}' --client Openclaw | \\\n  jq -r '.[0].markdown' > content.md\n\n# Multiple URLs with timeout\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fa.com\",\"https:\u002F\u002Fb.com\"],\n  \"formats\":[\"markdown\",\"metadata\"],\n  \"crawl_timeout\":30\n}' --client Openclaw\n\n# Extract just metadata\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"metadata\"]\n}' --client Openclaw | \\\n  jq '.[0].metadata'\n```\n\n## Error Handling\n\n**Exit codes:**\n- `0` - Success (response on stdout)\n- `1` - API error (rate limit, auth, network) - error on stderr\n- `2` - Invalid arguments - error on stderr\n\n**Stdout\u002Fstderr separation:**\n- Success: Compact JSON response on stdout (no wrapper)\n- Error: Error message + mailto link on stderr\n\n**Pattern:**\n```bash\n# Capture and check exit code\nif ! result=$(bunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw); then\n  echo \"Search failed: $?\"\n  exit 1\nfi\n\n# Parse success response from stdout\necho \"$result\" | jq .\n```\n\n**Error output example:**\n```\nError: --json flag is required\n    at searchCommand (\u002Fpath\u002Fto\u002Fsearch.ts:26:11)\nmailto:support@you.com?subject=API%20Issue%20CLI...\n```\n\n## Installation & Setup\n\n**Check runtime:**\n```bash\n# Check if Node.js or Bun installed\nif command -v bun &> \u002Fdev\u002Fnull; then\n  echo \"Bun installed\"\nelif command -v node &> \u002Fdev\u002Fnull; then\n  echo \"Node.js installed\"\nelse\n  echo \"Neither Node.js nor Bun found. Installing Bun (recommended)...\"\n  curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash\nfi\n```\n\n**Using the CLI (recommended for agents):**\n```bash\n# bunx with @latest checks for updates every 24 hours\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw\n\n# npx with @latest (note: has known caching issues, may not always fetch latest)\nnpx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw\n```\n\n**Note:** bunx is recommended because it checks for package updates every 24 hours when using `@latest`, while npx has [documented caching issues](https:\u002F\u002Fgithub.com\u002Fnpm\u002Fcli\u002Fissues\u002F7838) that may prevent it from fetching the latest version.\n\n## Environment Variables\n\n```bash\nexport YDC_API_KEY=\"your-api-key\"     # Required\nexport YDC_CLIENT=Openclaw            # Default client name\n```\n\n**Override per command:**\n```bash\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' \\\n  --api-key \"different-key\" \\\n  --client \"DifferentAgent\"\n```\n\n## Implementation Checklist\n\n- [ ] Runtime check: Node.js 18+ or Bun 1.0+\n- [ ] If missing: `curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash`\n- [ ] API key from https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n- [ ] Environment variables set: YDC_API_KEY, YDC_CLIENT\n- [ ] Schema discovery tested: `bunx @youdotcom-oss\u002Fapi@latest search --schema`\n- [ ] CLI tested with `--json` and `--client` flags\n- [ ] Livecrawl tested (search + content in one call)\n- [ ] Deep-search tested with low\u002Fmedium\u002Fhigh effort levels\n- [ ] Cross-platform timeout handled (Linux timeout \u002F macOS gtimeout)\n- [ ] Error handling added (exit codes + stderr)\n- [ ] Output parsing implemented (jq without `.data` wrapper)\n- [ ] Script integrated into workflow\n\n## Common Issues\n\n**\"Cannot find module @youdotcom-oss\u002Fapi\"**\nFix: Use bunx (no install needed): `bunx @youdotcom-oss\u002Fapi` or `npx @youdotcom-oss\u002Fapi`\n\n**\"--json flag is required\"**\nFix: Pass query as JSON: `--json '{\"query\":\"...\"}'`\n\n**\"YDC_API_KEY environment variable is required\"**\nFix: `export YDC_API_KEY=\"your-key\"`\n\n**\"Tool execution fails with 401\"**\nFix: Verify API key, get new key from platform\n\n**\"Cannot parse jq: .data.results not found\"**\nFix: Remove `.data` wrapper - use `.results` directly\n\n## Advanced Patterns\n\n### Schema-Driven Agent\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -e\n\n# Discover available search parameters (using ydc if installed globally)\nschema=$(ydc search --schema)\necho \"$schema\" | jq '.properties | keys'\n\n# Build query dynamically\nquery=$(jq -n '{\n  query: \"AI developments\",\n  count: 10,\n  livecrawl: \"web\",\n  livecrawl_formats: \"markdown\"\n}')\n\n# Execute search (using bunx)\nbunx @youdotcom-oss\u002Fapi@latest search --json \"$query\" --client Openclaw\n```\n\n### Parallel Execution\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw &\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"ML\"}' --client Openclaw &\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"LLM\"}' --client Openclaw &\nwait\n```\n\n### Rate Limit Retry\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nfor i in {1..3}; do\n  if bunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw; then\n    exit 0\n  fi\n  [ $i -lt 3 ] && sleep 5\ndone\necho \"Failed after 3 attempts\"\nexit 1\n```\n\n### Progressive Deep-Search\n\nStart low, escalate only if needed:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# Try low → medium → high until sufficient\nfor effort in low medium high; do\n  result=$(bunx @youdotcom-oss\u002Fapi@latest deep-search --json \"{\n    \\\"query\\\":\\\"$1\\\",\n    \\\"search_effort\\\":\\\"$effort\\\"\n  }\" --client Openclaw)\n\n  citations=$(echo \"$result\" | jq '.results | length')\n  [ \"$citations\" -ge 5 ] && echo \"$result\" | jq -r '.answer' && exit 0\ndone\n```\n\n### Parallel Deep-Search\n\nRun multiple research questions concurrently:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# Parallel research (3×60s = ~60s total, not 180s)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q1\"}' --client Openclaw > q1.json &\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q2\"}' --client Openclaw > q2.json &\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q3\"}' --client Openclaw > q3.json &\nwait\n\n# Combine results\nfor f in q*.json; do jq -r '.answer' \"$f\"; done\n```\n\n*Verify:* Progressive saves quota by avoiding unnecessary high effort\n\n## Resources\n\n* Package: https:\u002F\u002Fgithub.com\u002Fyoudotcom-oss\u002Fdx-toolkit\u002Ftree\u002Fmain\u002Fpackages\u002Fapi\n* API Keys: https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n","# Integrate You.com with Bash-Based AI Agents\n\nInteractive workflow to add You.com capabilities to bash-based AI agents using `@youdotcom-oss\u002Fapi` CLI tools.\n\n## Why Choose You.com Over Builtin APIs?\n\n**⚡ Faster Performance**:\n- Optimized API infrastructure built for agent workloads\n- Simultaneous search + crawl with livecrawl feature\n- Instant content extraction without manual fetching\n\n**✅ Verifiable References**:\n- Every search result includes citation URLs\n- Content extraction preserves metadata and structure\n\n**? Research-Grade Citations**:\n- Deep-search: Multi-step reasoning with inline citations\n- Adjustable effort (30s\u002F60s\u002F300s) for speed vs depth tradeoff\n\n**? Simultaneous Operations**:\n- **Livecrawl**: Search AND extract content in one call\n- Get both search results and full page content instantly\n- No need for separate fetch + extract steps\n\n**? Schema-Driven Design**:\n- JSON-only input via required `--json` flag\n- Schema discovery with `--schema` flag\n- Compact JSON output perfect for bash pipelines (jq, grep, awk)\n- Stdout\u002Fstderr separation (no success wrapper)\n- Lightweight CLI - no heavy dependencies\n\n## Workflow\n\n1. **Check: Runtime Environment**\n   * Node.js 18+ or Bun 1.0+ required\n   * Test: `node --version` or `bun --version`\n   * If neither installed: Install Bun (recommended): `curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash`\n\n2. **Ask agent: What's your name?**\n   * Use your agent name for the --client flag (e.g., \"OpenClaw\", \"ClaudeCode\", \"Codex\", \"Cursor\")\n   * Examples: `--client OpenClaw` or `--client ClaudeCode`\n   * Helps support respond to error reports (included in mailto links)\n   * Can set default: `export YDC_CLIENT=YourAgentName`\n\n3. **Ask: API Key Setup**\n   * Using standard `YDC_API_KEY`?\n   * Or custom name?\n   * Have they set it?\n   * If NO: Get from https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n   * Show: `export YDC_API_KEY=\"your-key\"`\n\n4. **Ask: Which Features?**\n   * Web search with livecrawl? (search + content in ONE call)\n   * Content extraction? (contents)\n   * Deep research with citations? (deep-search)\n   * Multiple?\n\n5. **Explain: Schema Discovery**\n   * Use `--schema` to discover available parameters\n   * Returns JSON schema for what can be passed to --json\n   * Build query objects programmatically\n   * Example: `bunx @youdotcom-oss\u002Fapi@latest search --schema | jq '.properties | keys'`\n\n6. **Show Examples**\n   * All examples use `--json` flag with JSON input\n   * All examples include `--client` flag\n   * Highlight livecrawl feature\n   * Show error handling patterns with exit codes\n   * Demonstrate jq parsing (direct access, no `.data` wrapper)\n\n## Tool Selection\n\nMatch user intent to command:\n\n| User Pattern | Tool | Timing | Use When |\n|--------------|------|--------|----------|\n| \"Extract https:\u002F\u002F...\" | `contents` | 1-60s\u002FURL | Known URL |\n| \"Find articles...\" | `search` | \u003C5s | Snippets enough |\n| \"What is X?\" | `search + livecrawl` | \u003C5s | **Express**: Quick full answer |\n| \"Latest news...\" | `search + freshness` | \u003C5s | Recent events |\n| \"Research X\" | `deep-search low` | \u003C30s | Quick check with citations |\n| \"Compare X vs Y\" | `deep-search medium` | \u003C60s | Balanced research (default) |\n| \"Comprehensive analysis\" | `deep-search high` | \u003C300s | **Deep**: Maximum thoroughness |\n\n**Express vs Research Mode:**\n- **Express** (`search + livecrawl`): \u003C5s, full content, one source\n- **Research** (`deep-search`): 30-300s, cited synthesis, multiple sources\n\n*Verify:* Check user query for keywords: \"what\u002Fhow\" → express, \"research\u002Fcompare\" → deep-search\n\n## CLI Usage Patterns\n\n### Schema Discovery\n\nAgents can discover what parameters each command accepts:\n\n```bash\n# Get schema for search command\nbunx @youdotcom-oss\u002Fapi@latest search --schema\n\n# Get schema for contents command\nbunx @youdotcom-oss\u002Fapi@latest contents --schema\n\n# List available search parameters\nbunx @youdotcom-oss\u002Fapi@latest search --schema | jq '.properties | keys'\n```\n\n### ? Web Search with Livecrawl - KEY ADVANTAGE\n\n**Schema-driven JSON input**: All parameters passed via `--json` flag\n\n```bash\n# Basic search with client tracking\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI developments\"}' --client Openclaw\n\n# Or with npx\nnpx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI developments\"}' --client Openclaw\n\n# LIVECRAWL: Search + extract content in ONE API call\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"documentation\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\",\n  \"count\":5\n}' --client Openclaw\n\n# Results include .contents.markdown with full page content!\n# No separate fetch needed - instant content extraction\n\n# Advanced: All search options\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"machine learning\",\n  \"count\":10,\n  \"offset\":0,\n  \"country\":\"US\",\n  \"freshness\":\"week\",\n  \"safesearch\":\"moderate\",\n  \"site\":\"github.com\",\n  \"language\":\"en\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\"\n}' --client Openclaw\n\n# Parse with jq - direct access, no .data wrapper\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw | \\\n  jq -r '.results.web[] | \"\\(.title): \\(.url)\"'\n\n# Extract livecrawl content\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\n  \"query\":\"docs\",\n  \"livecrawl\":\"web\",\n  \"livecrawl_formats\":\"markdown\"\n}' --client Openclaw | \\\n  jq -r '.results.web[0].contents.markdown'\n```\n\n### ⚡ AI Answers with Web Search - Cited Sources\n\nDo a search and extract contents with Livecrawl. Retrieve top 10 URLs content. Using this content, synthesize an answer based on the user's intent. Repeat searches and adjust query parameters as necessary to refine the answer for the user.\n\n### ? Deep Research with Citations\n\nMulti-step reasoning with cited sources. Use for research tasks.\n\n**Effort levels:**\n| Level | Time | Use Case |\n|-------|------|----------|\n| `low` | \u003C30s | Quick check |\n| `medium` | \u003C60s | Default (recommended) |\n| `high` | \u003C300s | Comprehensive |\n\n**Basic usage:**\n```bash\n# Quick research (\u003C30s)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"What is JWT authentication?\",\n  \"search_effort\":\"low\"\n}' --client Openclaw\n\n# Standard depth (\u003C60s, default)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"Compare REST vs GraphQL\",\n  \"search_effort\":\"medium\"\n}' --client Openclaw | jq -r '.answer'\n\n# Maximum depth (\u003C300s) - requires timeout command\ntimeout 330 bunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\n  \"query\":\"Comprehensive analysis of microservices\",\n  \"search_effort\":\"high\"\n}' --client Openclaw\n```\n\n**Response structure:**\n```json\n{\n  \"answer\": \"Markdown with [inline citations]...\",\n  \"results\": [{\"url\": \"...\", \"title\": \"...\", \"snippets\": [\"...\"]}]\n}\n```\n\n**Parse citations:**\n```bash\nresult | jq -r '.results[] | \"[\\(.title)](\\(.url))\"'\n```\n\n**Cross-platform timeout:**\n- Linux: `timeout` (built-in)\n- macOS: `gtimeout` (install: `brew install coreutils`)\n\n*Verify:* Test schema with `bunx @youdotcom-oss\u002Fapi@latest deep-search --schema`\n\n### ? Web Content Extraction - Multi-Format Output\n\n```bash\n# Extract in multiple formats\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"markdown\",\"html\",\"metadata\"]\n}' --client Openclaw\n\n# Pipe markdown to file\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"markdown\"]\n}' --client Openclaw | \\\n  jq -r '.[0].markdown' > content.md\n\n# Multiple URLs with timeout\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fa.com\",\"https:\u002F\u002Fb.com\"],\n  \"formats\":[\"markdown\",\"metadata\"],\n  \"crawl_timeout\":30\n}' --client Openclaw\n\n# Extract just metadata\nbunx @youdotcom-oss\u002Fapi@latest contents --json '{\n  \"urls\":[\"https:\u002F\u002Fexample.com\"],\n  \"formats\":[\"metadata\"]\n}' --client Openclaw | \\\n  jq '.[0].metadata'\n```\n\n## Error Handling\n\n**Exit codes:**\n- `0` - Success (response on stdout)\n- `1` - API error (rate limit, auth, network) - error on stderr\n- `2` - Invalid arguments - error on stderr\n\n**Stdout\u002Fstderr separation:**\n- Success: Compact JSON response on stdout (no wrapper)\n- Error: Error message + mailto link on stderr\n\n**Pattern:**\n```bash\n# Capture and check exit code\nif ! result=$(bunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw); then\n  echo \"Search failed: $?\"\n  exit 1\nfi\n\n# Parse success response from stdout\necho \"$result\" | jq .\n```\n\n**Error output example:**\n```\nError: --json flag is required\n    at searchCommand (\u002Fpath\u002Fto\u002Fsearch.ts:26:11)\nmailto:support@you.com?subject=API%20Issue%20CLI...\n```\n\n## Installation & Setup\n\n**Check runtime:**\n```bash\n# Check if Node.js or Bun installed\nif command -v bun &> \u002Fdev\u002Fnull; then\n  echo \"Bun installed\"\nelif command -v node &> \u002Fdev\u002Fnull; then\n  echo \"Node.js installed\"\nelse\n  echo \"Neither Node.js nor Bun found. Installing Bun (recommended)...\"\n  curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash\nfi\n```\n\n**Using the CLI (recommended for agents):**\n```bash\n# bunx with @latest checks for updates every 24 hours\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw\n\n# npx with @latest (note: has known caching issues, may not always fetch latest)\nnpx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw\n```\n\n**Note:** bunx is recommended because it checks for package updates every 24 hours when using `@latest`, while npx has [documented caching issues](https:\u002F\u002Fgithub.com\u002Fnpm\u002Fcli\u002Fissues\u002F7838) that may prevent it from fetching the latest version.\n\n## Environment Variables\n\n```bash\nexport YDC_API_KEY=\"your-api-key\"     # Required\nexport YDC_CLIENT=Openclaw            # Default client name\n```\n\n**Override per command:**\n```bash\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' \\\n  --api-key \"different-key\" \\\n  --client \"DifferentAgent\"\n```\n\n## Implementation Checklist\n\n- [ ] Runtime check: Node.js 18+ or Bun 1.0+\n- [ ] If missing: `curl -fsSL https:\u002F\u002Fbun.sh\u002Finstall | bash`\n- [ ] API key from https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n- [ ] Environment variables set: YDC_API_KEY, YDC_CLIENT\n- [ ] Schema discovery tested: `bunx @youdotcom-oss\u002Fapi@latest search --schema`\n- [ ] CLI tested with `--json` and `--client` flags\n- [ ] Livecrawl tested (search + content in one call)\n- [ ] Deep-search tested with low\u002Fmedium\u002Fhigh effort levels\n- [ ] Cross-platform timeout handled (Linux timeout \u002F macOS gtimeout)\n- [ ] Error handling added (exit codes + stderr)\n- [ ] Output parsing implemented (jq without `.data` wrapper)\n- [ ] Script integrated into workflow\n\n## Common Issues\n\n**\"Cannot find module @youdotcom-oss\u002Fapi\"**\nFix: Use bunx (no install needed): `bunx @youdotcom-oss\u002Fapi` or `npx @youdotcom-oss\u002Fapi`\n\n**\"--json flag is required\"**\nFix: Pass query as JSON: `--json '{\"query\":\"...\"}'`\n\n**\"YDC_API_KEY environment variable is required\"**\nFix: `export YDC_API_KEY=\"your-key\"`\n\n**\"Tool execution fails with 401\"**\nFix: Verify API key, get new key from platform\n\n**\"Cannot parse jq: .data.results not found\"**\nFix: Remove `.data` wrapper - use `.results` directly\n\n## Advanced Patterns\n\n### Schema-Driven Agent\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -e\n\n# Discover available search parameters (using ydc if installed globally)\nschema=$(ydc search --schema)\necho \"$schema\" | jq '.properties | keys'\n\n# Build query dynamically\nquery=$(jq -n '{\n  query: \"AI developments\",\n  count: 10,\n  livecrawl: \"web\",\n  livecrawl_formats: \"markdown\"\n}')\n\n# Execute search (using bunx)\nbunx @youdotcom-oss\u002Fapi@latest search --json \"$query\" --client Openclaw\n```\n\n### Parallel Execution\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw &\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"ML\"}' --client Openclaw &\nbunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"LLM\"}' --client Openclaw &\nwait\n```\n\n### Rate Limit Retry\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nfor i in {1..3}; do\n  if bunx @youdotcom-oss\u002Fapi@latest search --json '{\"query\":\"AI\"}' --client Openclaw; then\n    exit 0\n  fi\n  [ $i -lt 3 ] && sleep 5\ndone\necho \"Failed after 3 attempts\"\nexit 1\n```\n\n### Progressive Deep-Search\n\nStart low, escalate only if needed:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# Try low → medium → high until sufficient\nfor effort in low medium high; do\n  result=$(bunx @youdotcom-oss\u002Fapi@latest deep-search --json \"{\n    \\\"query\\\":\\\"$1\\\",\n    \\\"search_effort\\\":\\\"$effort\\\"\n  }\" --client Openclaw)\n\n  citations=$(echo \"$result\" | jq '.results | length')\n  [ \"$citations\" -ge 5 ] && echo \"$result\" | jq -r '.answer' && exit 0\ndone\n```\n\n### Parallel Deep-Search\n\nRun multiple research questions concurrently:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# Parallel research (3×60s = ~60s total, not 180s)\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q1\"}' --client Openclaw > q1.json &\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q2\"}' --client Openclaw > q2.json &\nbunx @youdotcom-oss\u002Fapi@latest deep-search --json '{\"query\":\"Q3\"}' --client Openclaw > q3.json &\nwait\n\n# Combine results\nfor f in q*.json; do jq -r '.answer' \"$f\"; done\n```\n\n*Verify:* Progressive saves quota by avoiding unnecessary high effort\n\n## Resources\n\n* Package: https:\u002F\u002Fgithub.com\u002Fyoudotcom-oss\u002Fdx-toolkit\u002Ftree\u002Fmain\u002Fpackages\u002Fapi\n* API Keys: https:\u002F\u002Fyou.com\u002Fplatform\u002Fapi-keys\n",{"name":5,"license":14,"metadata":43,"description":7,"compatibility":48},{"author":44,"version":45,"category":46,"keywords":47},"youdotcom-oss","1.2.0","web-search-tools","you.com,bash,cli,ai-agents,web-search,content-extraction,livecrawl,citations,json,schema-driven,openclaw,claude-code,codex,cursor","Requires Node.js 18+ or Bun, bunx\u002Fnpx for CLI execution","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fedwardirby\u002Fyoudotcom-cli",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add kbarbel640-del\u002Fskills --skill youdotcom-cli",{"tool":62,"command":63},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill youdotcom-cli",{"tool":65,"command":66},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill youdotcom-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fedwardirby\u002Fyoudotcom-cli\u002FSKILL.md",true,[70],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"_meta.json","REFERENCE","参考文档",634,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fedwardirby\u002Fyoudotcom-cli\u002F_meta.json",[77,102,125,143,148,168],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":38},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,29],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":38},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[109,86,110,111,112,113,114,115,116,117,21,118,119,120,121,122,123,91,124],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":38},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[132,133,134,135,136,137,138,87,139,122,124,140,86,141,142],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":144,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":38},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[135,134,133,132,142,137,138,87,136,122,124,139,140,86,141],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":38},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[155,156,157,158,159,160,161,162,163,164,165,166,167],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":38},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[175,176,177,178,87,24,179,49,180,140,181,182,183,184,185,100,186,187,188],"agent constitution","constitution","contracts","tree","base","log","check","Rules","projects","compliance","actions","state","governance","github"]