Skills Artificial Intelligence Anthropic Tool Use and Agent Workflow

Anthropic Tool Use and Agent Workflow

v20260423
clade-core-workflow-b
This advanced guide covers core Anthropic workflow patterns, specifically focusing on tool use (function calling) and building complex, agentic loops. It provides detailed instructions on defining tools using JSON Schema, executing tool calls, and managing the iterative process required for building sophisticated, AI-powered agents using the Anthropic API.
Get Skill
60 downloads
Overview

Anthropic Core Workflow B → Tool Use

Overview

This skill redirects to clade-embeddings-search which covers tool use (function calling), the agentic tool loop, and building Claude-powered agents.

Prerequisites

  • Completed clade-model-inference
  • Understanding of JSON Schema for tool definitions

Instructions

Step 1: Use claude-embeddings-search instead

This skill has been replaced. The secondary Anthropic workflow is tool use / function calling, covered in full by clade-embeddings-search.

Step 2: Key topics covered there

  • Defining tools with JSON Schema input schemas
  • Sending messages with tools attached
  • Executing tool calls and returning results
  • Building an agentic loop that runs until Claude stops calling tools
  • Error handling for tool use edge cases

Output

  • Redirected to clade-embeddings-search
  • Complete tool use patterns available there

Error Handling

Issue Solution
Skill not found Run clade-embeddings-search directly
Tool use errors See tool validation patterns in that skill

Examples

// Use claude-embeddings-search for the full tool use guide
const tools: Anthropic.Tool[] = [{
  name: 'get_weather',
  description: 'Get weather for a city',
  input_schema: {
    type: 'object',
    properties: { city: { type: 'string' } },
    required: ['city'],
  },
}];
const response = await client.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  tools,
  messages: [{ role: 'user', content: "What's the weather in Paris?" }],
});

Resources

Next Steps

Run clade-embeddings-search for the complete tool use guide.

Info
Name clade-core-workflow-b
Version v20260423
Size 2.14KB
Updated At 2026-04-28
Language