when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"Calculate (3 + 5) / 4 and describe the result.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are an assistant that must use the available tools for arithmetic. Never compute the result yourself.","type":"text"}],"tools":[{"description":"Add x and y together","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"add"},{"description":"Compute the quotient of x and y.","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"divide"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"I''ll calculate this step by step. First, let me compute the addition **3 + 5** simultaneously — since dividing requires the sum first, let me start there!","type":"text"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_1","input":{"x":3,"y":5},"name":"add","type":"tool_use"}],"id":"msg_REDACTED_1","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":673,"output_tokens":106,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"Calculate (3 + 5) / 4 and describe the result.","type":"text"}],"role":"user"},{"content":[{"text":"I''ll calculate this step by step. First, let me compute the addition **3 + 5** simultaneously — since dividing requires the sum first, let me start there!","type":"text"},{"id":"toolu_REDACTED_1","input":{"x":3,"y":5},"name":"add","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"8","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are an assistant that must use the available tools for arithmetic. Never compute the result yourself.","type":"text"}],"tools":[{"description":"Add x and y together","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"add"},{"description":"Compute the quotient of x and y.","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"divide"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"3 + 5 = **8**. Now let me divide that result by 4!","type":"text"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_2","input":{"x":8,"y":4},"name":"divide","type":"tool_use"}],"id":"msg_REDACTED_2","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":792,"output_tokens":90,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"Calculate (3 + 5) / 4 and describe the result.","type":"text"}],"role":"user"},{"content":[{"text":"I''ll calculate this step by step. First, let me compute the addition **3 + 5** simultaneously — since dividing requires the sum first, let me start there!","type":"text"},{"id":"toolu_REDACTED_1","input":{"x":3,"y":5},"name":"add","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"8","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"},{"content":[{"text":"3 + 5 = **8**. Now let me divide that result by 4!","type":"text"},{"id":"toolu_REDACTED_2","input":{"x":8,"y":4},"name":"divide","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"2","type":"text"}],"tool_use_id":"toolu_REDACTED_2","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are an assistant that must use the available tools for arithmetic. Never compute the result yourself.","type":"text"}],"tools":[{"description":"Add x and y together","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"add"},{"description":"Compute the quotient of x and y.","input_schema":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"name":"divide"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"### Result: **2**\n\nHere''s a breakdown of the calculation:\n1. **Addition first** (following the parentheses): 3 + 5 = **8**\n2. **Division next**: 8 ÷ 4 = **2**\n\nThe final result is **2**, a positive whole number (integer). It''s also an even number, and represents exactly half of 4 — a clean, remainder-free division!","type":"text"}],"id":"msg_REDACTED_3","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":895,"output_tokens":103,"service_tier":"standard"}}'
