What can you do with it?

Interact with Claude AI models through the Anthropic API for text generation, analysis, and conversation, including support for system prompts, multi-turn conversations, and image analysis capabilities.

How to use it?

Basic Command Structure

/your-anthropic-connection [action] [required-parameters] [optional-parameters]

Parameters

Required:

  • action - The operation to perform (create-message, create-message-with-system, create-message-with-image)

Optional:

  • model - Claude model to use (default: claude-3-5-sonnet-20241022)
  • max-tokens - Maximum tokens to generate (default: 1024)
  • system-prompt - System instructions for the model
  • anthropic-version - API version header

Tools

Create Message

Send a message to Claude and get a response

Parameters:

  • model (optional) - Claude model to use
  • max-tokens (optional) - Maximum tokens to generate
  • message (required) - The user message to send

Example:

/your-anthropic-connection
action: create-message
model: claude-3-5-sonnet-20241022
max-tokens: 1024
message: Hello, Claude!

Response:

{
  "id": "msg_01A1B2C3D4E5F6G7H8I9J0",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "Hello! How can I help you today?"
    }
  ],
  "model": "claude-3-5-sonnet-20241022",
  "stop_reason": "end_turn",
  "stop_sequence": null,
  "usage": {
    "input_tokens": 10,
    "output_tokens": 12
  }
}

Create Message with System Prompt

Send a message with system instructions

Parameters:

  • model (optional) - Claude model to use
  • max-tokens (optional) - Maximum tokens to generate
  • system-prompt (required) - System instructions for the model
  • message (required) - The user message to send

Example:

/your-anthropic-connection
action: create-message-with-system
model: claude-3-5-sonnet-20241022
max-tokens: 1024
system-prompt: You are a helpful assistant that responds in JSON format.
message: What is the capital of France?

Response:

{
  "id": "msg_01A1B2C3D4E5F6G7H8I9J0",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "{\"capital\": \"Paris\", \"country\": \"France\"}"
    }
  ],
  "model": "claude-3-5-sonnet-20241022",
  "stop_reason": "end_turn",
  "usage": {
    "input_tokens": 25,
    "output_tokens": 15
  }
}

Create Message with Image

Send a message with an image for analysis

Parameters:

  • model (optional) - Claude model to use
  • max-tokens (optional) - Maximum tokens to generate
  • message (required) - The text message to send
  • image-data (required) - Base64 encoded image data
  • media-type (required) - Image media type (e.g., image/jpeg, image/png)

Example:

/your-anthropic-connection
action: create-message-with-image
model: claude-3-5-sonnet-20241022
max-tokens: 1024
message: What do you see in this image?
image-data: /9j/4AAQSkZJRgABAQAAAQABAAD...
media-type: image/jpeg

Response:

{
  "id": "msg_01A1B2C3D4E5F6G7H8I9J0",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "I can see a beautiful landscape with mountains in the background and a lake in the foreground..."
    }
  ],
  "model": "claude-3-5-sonnet-20241022",
  "stop_reason": "end_turn",
  "usage": {
    "input_tokens": 1150,
    "output_tokens": 45
  }
}

Notes

Available Claude models include claude-opus-4-20250514 for complex reasoning, claude-sonnet-4-20250514 for coding and analysis, claude-3-7-sonnet-20250219 for structured reasoning, claude-3-5-haiku-20241022 for fast responses, and claude-3-5-sonnet-20241022 for general chat. All models support text and image inputs with varying context windows. Include the anthropic-version header (e.g., 2023-06-01) in requests.