computer_use.yaml

 1---
 2version: 2
 3interactions:
 4- id: 0
 5  request:
 6    proto: HTTP/1.1
 7    proto_major: 1
 8    proto_minor: 1
 9    content_length: 323
10    host: ""
11    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"Take a screenshot of the desktop","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","system":[{"text":"You are a helpful assistant","type":"text"}],"tools":[{"display_height_px":1080,"display_width_px":1920,"name":"computer","type":"computer_20250124"}]}'
12    form:
13      beta:
14      - "true"
15    headers:
16      Accept:
17      - application/json
18      Content-Type:
19      - application/json
20      User-Agent:
21      - Charm-Fantasy/0.16.0 (https://charm.land/fantasy)
22    url: https://api.anthropic.com/v1/messages?beta=true
23    method: POST
24  response:
25    proto: HTTP/2.0
26    proto_major: 2
27    proto_minor: 0
28    content_length: -1
29    uncompressed: true
30    body: '{"model":"claude-sonnet-4-20250514","id":"msg_01KHX677vLGXfeouAejAbGDD","type":"message","role":"assistant","content":[{"type":"text","text":"I''ll take a screenshot of the desktop for you."},{"type":"tool_use","id":"toolu_01MpnnLwjqpqYWLUQ5F5SixE","name":"computer","input":{"action":"screenshot"},"caller":{"type":"direct"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":1652,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":63,"service_tier":"standard","inference_geo":"not_available"}}'
31    headers:
32      Content-Type:
33      - application/json
34    status: 200 OK
35    code: 200
36    duration: 1.45399283s
37- id: 1
38  request:
39    proto: HTTP/1.1
40    proto_major: 1
41    proto_minor: 1
42    content_length: 749
43    host: ""
44    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"Take a screenshot of the desktop","type":"text"}],"role":"user"},{"content":[{"id":"toolu_01MpnnLwjqpqYWLUQ5F5SixE","input":{"action":"screenshot"},"name":"computer","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01MpnnLwjqpqYWLUQ5F5SixE","content":[{"source":{"data":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==","media_type":"image/png","type":"base64"},"type":"image"}],"type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-20250514","system":[{"text":"You are a helpful assistant","type":"text"}],"tools":[{"display_height_px":1080,"display_width_px":1920,"name":"computer","type":"computer_20250124"}]}'
45    form:
46      beta:
47      - "true"
48    headers:
49      Accept:
50      - application/json
51      Content-Type:
52      - application/json
53      User-Agent:
54      - Charm-Fantasy/0.16.0 (https://charm.land/fantasy)
55    url: https://api.anthropic.com/v1/messages?beta=true
56    method: POST
57  response:
58    proto: HTTP/2.0
59    proto_major: 2
60    proto_minor: 0
61    content_length: -1
62    uncompressed: true
63    body: '{"model":"claude-sonnet-4-20250514","id":"msg_01Ute4pN6TgBst3zEx6h8nF4","type":"message","role":"assistant","content":[{"type":"text","text":"I''ve taken a screenshot of the desktop. The image shows a plain black desktop background without any visible icons, taskbar, or other desktop elements. This appears to be a minimal desktop environment. Is there anything specific you''d like me to do with the desktop or any applications you''d like me to open?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":1731,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":65,"service_tier":"standard","inference_geo":"not_available"}}'
64    headers:
65      Content-Type:
66      - application/json
67    status: 200 OK
68    code: 200
69    duration: 2.613302152s