[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F85T7XD32PT0JD9JGS5T1R":3,"skill-same:01M6F85T7XD32PT0JD9JGS5T1R":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6F85T7XD32PT0JD9JGS5T1R","clade-embeddings-search",null,"Implement tool use (function calling) with Claude to let it execute actions,\nUse when working with embeddings-search patterns.\nquery databases, call APIs, and interact with external systems.\nTrigger with \"anthropic tool use\", \"claude function calling\", \"claude tools\",\n\"anthropic structured output with tools\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-embeddings-search\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"search","clade embeddings search","embeddings","patterns","code","function-calling","structured output","trigger","io","query","calling","call","databases","edit","write","read","tool","Bash","Tools","actions","2026-11-10 10:12:30",false,"---\nname: clade-embeddings-search\ndescription: |\n  Implement tool use (function calling) with Claude to let it execute actions,\n  Use when working with embeddings-search patterns.\n  query databases, call APIs, and interact with external systems.\n  Trigger with \"anthropic tool use\", \"claude function calling\", \"claude tools\",\n  \"anthropic structured output with tools\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code\ntags: [saas, anthropic, claude, tool-use, function-calling]\n---\n\n# Anthropic Tool Use (Function Calling)\n\n## Overview\nTool use lets Claude call functions you define — query databases, hit APIs, read files, do math. Claude decides when to call a tool, you execute it, and feed the result back. This is how you build Claude-powered agents.\n\n> **Note:** Anthropic does not offer an embeddings API. For embeddings + vector search, pair Claude with a dedicated embedding model (OpenAI, Cohere, or Voyage).\n\n## Prerequisites\n- Completed `clade-model-inference`\n- Understanding of JSON Schema for tool definitions\n\n## Instructions\n\n### Step 1: Define Tools\n```typescript\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nconst tools: Anthropic.Tool[] = [\n  {\n    name: 'get_weather',\n    description: 'Get current weather for a city. Call this when the user asks about weather.',\n    input_schema: {\n      type: 'object',\n      properties: {\n        city: { type: 'string', description: 'City name, e.g. \"San Francisco\"' },\n        unit: { type: 'string', enum: ['celsius', 'fahrenheit'], description: 'Temperature unit' },\n      },\n      required: ['city'],\n    },\n  },\n];\n```\n\n### Step 2: Send Message with Tools\n```typescript\nconst response = await client.messages.create({\n  model: 'claude-sonnet-4-20250514',\n  max_tokens: 1024,\n  tools,\n  messages: [{ role: 'user', content: \"What's the weather in San Francisco?\" }],\n});\n\n\u002F\u002F Claude responds with stop_reason: 'tool_use'\n\u002F\u002F response.content includes a tool_use block:\n\u002F\u002F { type: 'tool_use', id: 'toolu_01...', name: 'get_weather', input: { city: 'San Francisco' } }\n```\n\n### Step 3: Execute Tool and Return Result\n```typescript\n\u002F\u002F Find the tool use block\nconst toolUse = response.content.find(block => block.type === 'tool_use');\n\n\u002F\u002F Execute your function\nconst weatherData = await fetchWeather(toolUse.input.city);\n\n\u002F\u002F Send result back to Claude\nconst finalResponse = await client.messages.create({\n  model: 'claude-sonnet-4-20250514',\n  max_tokens: 1024,\n  tools,\n  messages: [\n    { role: 'user', content: \"What's the weather in San Francisco?\" },\n    { role: 'assistant', content: response.content },\n    {\n      role: 'user',\n      content: [{\n        type: 'tool_result',\n        tool_use_id: toolUse.id,\n        content: JSON.stringify(weatherData),\n      }],\n    },\n  ],\n});\n\nconsole.log(finalResponse.content[0].text);\n\u002F\u002F \"The weather in San Francisco is currently 65°F and partly cloudy.\"\n```\n\n## Python Example\n```python\nimport anthropic\n\nclient = anthropic.Anthropic()\n\ntools = [{\n    \"name\": \"get_weather\",\n    \"description\": \"Get current weather for a city.\",\n    \"input_schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"city\": {\"type\": \"string\"},\n        },\n        \"required\": [\"city\"],\n    },\n}]\n\nresponse = client.messages.create(\n    model=\"claude-sonnet-4-20250514\",\n    max_tokens=1024,\n    tools=tools,\n    messages=[{\"role\": \"user\", \"content\": \"Weather in Paris?\"}],\n)\n\n# Process tool_use blocks in response.content\nfor block in response.content:\n    if block.type == \"tool_use\":\n        result = execute_tool(block.name, block.input)\n        # Send tool_result back...\n```\n\n## Agentic Tool Loop\n```typescript\n\u002F\u002F Keep calling Claude until it stops requesting tools\nlet messages = [{ role: 'user', content: userInput }];\n\nwhile (true) {\n  const response = await client.messages.create({\n    model: 'claude-sonnet-4-20250514',\n    max_tokens: 4096,\n    tools,\n    messages,\n  });\n\n  \u002F\u002F Add assistant response to conversation\n  messages.push({ role: 'assistant', content: response.content });\n\n  if (response.stop_reason === 'end_turn') {\n    \u002F\u002F Claude is done — extract final text\n    const text = response.content.find(b => b.type === 'text')?.text;\n    console.log(text);\n    break;\n  }\n\n  \u002F\u002F Execute all tool calls and send results\n  const toolResults = [];\n  for (const block of response.content) {\n    if (block.type === 'tool_use') {\n      const result = await executeTool(block.name, block.input);\n      toolResults.push({\n        type: 'tool_result',\n        tool_use_id: block.id,\n        content: JSON.stringify(result),\n      });\n    }\n  }\n  messages.push({ role: 'user', content: toolResults });\n}\n```\n\n## Output\n- `tool_use` content blocks with `name` and `input` when Claude wants to call a tool\n- `stop_reason: \"tool_use\"` indicating Claude is waiting for tool results\n- Final text response after all tool results are provided\n- Complete agentic loop until `stop_reason: \"end_turn\"`\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `invalid_request_error` | Bad tool schema | Validate JSON Schema. `input_schema` must be a valid JSON Schema object |\n| `tool_use` with no matching name | Claude hallucinated a tool | Check `tool_use.name` against your defined tools before executing |\n| `tool_result` mismatch | Wrong `tool_use_id` | Each `tool_result` must reference the exact `id` from the `tool_use` block |\n\n## Examples\nSee Step 1 (tool definition), Step 2 (sending with tools), Step 3 (executing and returning results), and the full agentic tool loop example above.\n\n## Resources\n- [Tool Use Guide](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Fbuild-with-claude\u002Ftool-use)\n- [Tool Use API Reference](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Fmessages)\n\n## Next Steps\nSee `clade-common-errors` for error handling patterns.\n\n","# Anthropic Tool Use (Function Calling)\n\n## Overview\nTool use lets Claude call functions you define — query databases, hit APIs, read files, do math. Claude decides when to call a tool, you execute it, and feed the result back. This is how you build Claude-powered agents.\n\n> **Note:** Anthropic does not offer an embeddings API. For embeddings + vector search, pair Claude with a dedicated embedding model (OpenAI, Cohere, or Voyage).\n\n## Prerequisites\n- Completed `clade-model-inference`\n- Understanding of JSON Schema for tool definitions\n\n## Instructions\n\n### Step 1: Define Tools\n```typescript\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nconst tools: Anthropic.Tool[] = [\n  {\n    name: 'get_weather',\n    description: 'Get current weather for a city. Call this when the user asks about weather.',\n    input_schema: {\n      type: 'object',\n      properties: {\n        city: { type: 'string', description: 'City name, e.g. \"San Francisco\"' },\n        unit: { type: 'string', enum: ['celsius', 'fahrenheit'], description: 'Temperature unit' },\n      },\n      required: ['city'],\n    },\n  },\n];\n```\n\n### Step 2: Send Message with Tools\n```typescript\nconst response = await client.messages.create({\n  model: 'claude-sonnet-4-20250514',\n  max_tokens: 1024,\n  tools,\n  messages: [{ role: 'user', content: \"What's the weather in San Francisco?\" }],\n});\n\n\u002F\u002F Claude responds with stop_reason: 'tool_use'\n\u002F\u002F response.content includes a tool_use block:\n\u002F\u002F { type: 'tool_use', id: 'toolu_01...', name: 'get_weather', input: { city: 'San Francisco' } }\n```\n\n### Step 3: Execute Tool and Return Result\n```typescript\n\u002F\u002F Find the tool use block\nconst toolUse = response.content.find(block => block.type === 'tool_use');\n\n\u002F\u002F Execute your function\nconst weatherData = await fetchWeather(toolUse.input.city);\n\n\u002F\u002F Send result back to Claude\nconst finalResponse = await client.messages.create({\n  model: 'claude-sonnet-4-20250514',\n  max_tokens: 1024,\n  tools,\n  messages: [\n    { role: 'user', content: \"What's the weather in San Francisco?\" },\n    { role: 'assistant', content: response.content },\n    {\n      role: 'user',\n      content: [{\n        type: 'tool_result',\n        tool_use_id: toolUse.id,\n        content: JSON.stringify(weatherData),\n      }],\n    },\n  ],\n});\n\nconsole.log(finalResponse.content[0].text);\n\u002F\u002F \"The weather in San Francisco is currently 65°F and partly cloudy.\"\n```\n\n## Python Example\n```python\nimport anthropic\n\nclient = anthropic.Anthropic()\n\ntools = [{\n    \"name\": \"get_weather\",\n    \"description\": \"Get current weather for a city.\",\n    \"input_schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"city\": {\"type\": \"string\"},\n        },\n        \"required\": [\"city\"],\n    },\n}]\n\nresponse = client.messages.create(\n    model=\"claude-sonnet-4-20250514\",\n    max_tokens=1024,\n    tools=tools,\n    messages=[{\"role\": \"user\", \"content\": \"Weather in Paris?\"}],\n)\n\n# Process tool_use blocks in response.content\nfor block in response.content:\n    if block.type == \"tool_use\":\n        result = execute_tool(block.name, block.input)\n        # Send tool_result back...\n```\n\n## Agentic Tool Loop\n```typescript\n\u002F\u002F Keep calling Claude until it stops requesting tools\nlet messages = [{ role: 'user', content: userInput }];\n\nwhile (true) {\n  const response = await client.messages.create({\n    model: 'claude-sonnet-4-20250514',\n    max_tokens: 4096,\n    tools,\n    messages,\n  });\n\n  \u002F\u002F Add assistant response to conversation\n  messages.push({ role: 'assistant', content: response.content });\n\n  if (response.stop_reason === 'end_turn') {\n    \u002F\u002F Claude is done — extract final text\n    const text = response.content.find(b => b.type === 'text')?.text;\n    console.log(text);\n    break;\n  }\n\n  \u002F\u002F Execute all tool calls and send results\n  const toolResults = [];\n  for (const block of response.content) {\n    if (block.type === 'tool_use') {\n      const result = await executeTool(block.name, block.input);\n      toolResults.push({\n        type: 'tool_result',\n        tool_use_id: block.id,\n        content: JSON.stringify(result),\n      });\n    }\n  }\n  messages.push({ role: 'user', content: toolResults });\n}\n```\n\n## Output\n- `tool_use` content blocks with `name` and `input` when Claude wants to call a tool\n- `stop_reason: \"tool_use\"` indicating Claude is waiting for tool results\n- Final text response after all tool results are provided\n- Complete agentic loop until `stop_reason: \"end_turn\"`\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `invalid_request_error` | Bad tool schema | Validate JSON Schema. `input_schema` must be a valid JSON Schema object |\n| `tool_use` with no matching name | Claude hallucinated a tool | Check `tool_use.name` against your defined tools before executing |\n| `tool_result` mismatch | Wrong `tool_use_id` | Each `tool_result` must reference the exact `id` from the `tool_use` block |\n\n## Examples\nSee Step 1 (tool definition), Step 2 (sending with tools), Step 3 (executing and returning results), and the full agentic tool loop example above.\n\n## Resources\n- [Tool Use Guide](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Fbuild-with-claude\u002Ftool-use)\n- [Tool Use API Reference](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Fmessages)\n\n## Next Steps\nSee `clade-common-errors` for error handling patterns.\n\n",{"name":5,"tags":44,"author":49,"license":15,"version":50,"description":51,"allowed-tools":52,"compatible-with":53},[45,46,47,48,24],"saas","anthropic","claude","tool-use","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement tool use (function calling) with Claude to let it execute actions,\nUse when working with embeddings-search patterns.\nquery databases, call APIs, and interact with external systems.\nTrigger with \"anthropic tool use\", \"claude function calling\", \"claude tools\",\n\"anthropic structured output with tools\".\n","Read, Write, Edit, Bash(npm:*), Grep","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-embeddings-search",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill clade-embeddings-search",{"tool":69,"command":70},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill clade-embeddings-search",{"tool":72,"command":73},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill clade-embeddings-search","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-embeddings-search\u002FSKILL.md",true,[],[78,87,96,105,111,117],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[84,85,86],"model","model hierarchy","model hierarchy skill",{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[93,94,95],"MCP","zoom","zoom mcp",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[102,103,104,94],"sdk","zoom apps sdk","apps",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[107],{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[119]]