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: 314
10    host: ""
11    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"Take a screenshot of the desktop","type":"text"}],"role":"user"}],"model":"claude-opus-4-6","system":[{"text":"You are a helpful assistant","type":"text"}],"tools":[{"display_height_px":1080,"display_width_px":1920,"name":"computer","type":"computer_20251124"}]}'
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-opus-4-6","id":"msg_01KbvEPdNineiBzobWvpf838","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_017ZcKCSBfPgLF2MstqzLwS6","name":"computer","input":{"action":"screenshot"},"caller":{"type":"direct"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":1842,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":52,"service_tier":"standard","inference_geo":"global"}}'
31    headers:
32      Content-Type:
33      - application/json
34    status: 200 OK
35    code: 200
36    duration: 2.904585799s
37- id: 1
38  request:
39    proto: HTTP/1.1
40    proto_major: 1
41    proto_minor: 1
42    content_length: 740
43    host: ""
44    body: '{"max_tokens":4096,"messages":[{"content":[{"text":"Take a screenshot of the desktop","type":"text"}],"role":"user"},{"content":[{"id":"toolu_017ZcKCSBfPgLF2MstqzLwS6","input":{"action":"screenshot"},"name":"computer","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_017ZcKCSBfPgLF2MstqzLwS6","content":[{"source":{"data":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==","media_type":"image/png","type":"base64"},"type":"image"}],"type":"tool_result"}],"role":"user"}],"model":"claude-opus-4-6","system":[{"text":"You are a helpful assistant","type":"text"}],"tools":[{"display_height_px":1080,"display_width_px":1920,"name":"computer","type":"computer_20251124"}]}'
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-opus-4-6","id":"msg_01LNnzU2u6f7Gb7QsSWZFMqV","type":"message","role":"assistant","content":[{"type":"text","text":"The screenshot shows what appears to be a mostly blank/yellow desktop. The screen appears to be largely empty with a light yellow or pale background. There don''t seem to be any visible icons, taskbar, or other desktop elements in this view.\n\nWould you like me to try anything else, such as moving the mouse or clicking to see if there are hidden elements?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":1921,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":78,"service_tier":"standard","inference_geo":"global"}}'
64    headers:
65      Content-Type:
66      - application/json
67    status: 200 OK
68    code: 200
69    duration: 4.691481122s