Skip to content

Commit b44a162

Browse files
committed
claudetool: remove unused browser tool arg
1 parent 994e984 commit b44a162

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

claudetool/browse/browse.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ func (b *BrowseTools) evalRun(ctx context.Context, m json.RawMessage) llm.ToolOu
521521
// ScreenshotTool definition
522522
type screenshotInput struct {
523523
Selector string `json:"selector,omitempty"`
524-
Format string `json:"format,omitempty"`
525524
Timeout string `json:"timeout,omitempty"`
526525
}
527526

@@ -537,11 +536,6 @@ func (b *BrowseTools) NewScreenshotTool() *llm.Tool {
537536
"type": "string",
538537
"description": "CSS selector for the element to screenshot (optional)"
539538
},
540-
"format": {
541-
"type": "string",
542-
"description": "Output format ('base64' or 'png'), defaults to 'base64'",
543-
"enum": ["base64", "png"]
544-
},
545539
"timeout": {
546540
"type": "string",
547541
"description": "Timeout as a Go duration string (default: 5s)"

loop/testdata/agent_loop.httprr

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
httprr trace v1
2-
18226 2450
2+
18043 2288
33
POST https://api.anthropic.com/v1/messages HTTP/1.1
44
Host: api.anthropic.com
55
User-Agent: Go-http-client/1.1
6-
Content-Length: 18028
6+
Content-Length: 17845
77
Anthropic-Version: 2023-06-01
88
Content-Type: application/json
99

@@ -508,14 +508,6 @@ Content-Type: application/json
508508
"type": "string",
509509
"description": "CSS selector for the element to screenshot (optional)"
510510
},
511-
"format": {
512-
"type": "string",
513-
"description": "Output format ('base64' or 'png'), defaults to 'base64'",
514-
"enum": [
515-
"base64",
516-
"png"
517-
]
518-
},
519511
"timeout": {
520512
"type": "string",
521513
"description": "Timeout as a Go duration string (default: 5s)"
@@ -557,24 +549,24 @@ Content-Type: application/json
557549
Anthropic-Organization-Id: 3c473a21-7208-450a-a9f8-80aebda45c1b
558550
Anthropic-Ratelimit-Input-Tokens-Limit: 2000000
559551
Anthropic-Ratelimit-Input-Tokens-Remaining: 2000000
560-
Anthropic-Ratelimit-Input-Tokens-Reset: 2025-07-31T01:39:04Z
552+
Anthropic-Ratelimit-Input-Tokens-Reset: 2025-07-31T04:47:48Z
561553
Anthropic-Ratelimit-Output-Tokens-Limit: 400000
562554
Anthropic-Ratelimit-Output-Tokens-Remaining: 400000
563-
Anthropic-Ratelimit-Output-Tokens-Reset: 2025-07-31T01:39:09Z
555+
Anthropic-Ratelimit-Output-Tokens-Reset: 2025-07-31T04:47:53Z
564556
Anthropic-Ratelimit-Requests-Limit: 4000
565557
Anthropic-Ratelimit-Requests-Remaining: 3999
566-
Anthropic-Ratelimit-Requests-Reset: 2025-07-31T01:39:03Z
558+
Anthropic-Ratelimit-Requests-Reset: 2025-07-31T04:47:47Z
567559
Anthropic-Ratelimit-Tokens-Limit: 2400000
568560
Anthropic-Ratelimit-Tokens-Remaining: 2400000
569-
Anthropic-Ratelimit-Tokens-Reset: 2025-07-31T01:39:04Z
561+
Anthropic-Ratelimit-Tokens-Reset: 2025-07-31T04:47:48Z
570562
Cf-Cache-Status: DYNAMIC
571-
Cf-Ray: 96796139ad9b17f0-SJC
563+
Cf-Ray: 967a75b2793ccf0e-SJC
572564
Content-Type: application/json
573-
Date: Thu, 31 Jul 2025 01:39:09 GMT
574-
Request-Id: req_011CReF3FF82j1DdKxe9UfcT
565+
Date: Thu, 31 Jul 2025 04:47:53 GMT
566+
Request-Id: req_011CReVS1GWZPU1iZLUbAfLH
575567
Server: cloudflare
576568
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
577569
Via: 1.1 google
578570
X-Robots-Tag: none
579571

580-
{"id":"msg_01MrEYnet6DtgPztpsmM8fFX","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Here are the tools available to me:\n\n**File & Code Management:**\n- `bash` - Execute shell commands\n- `patch` - Modify files with precise text edits\n- `keyword_search` - Search codebase by keywords/concepts\n\n**Task Management:**\n- `todo_read` - Read current task list\n- `todo_write` - Create/update task list\n- `think` - Internal notes and planning\n\n**Development Workflow:**\n- `codereview` - Run automated code review\n- `done` - Mark work complete with checklist verification\n\n**Browser Automation:**\n- `browser_navigate` - Navigate to URLs\n- `browser_click` - Click elements\n- `browser_type` - Type into inputs\n- `browser_wait_for` - Wait for elements\n- `browser_get_text` - Read element text\n- `browser_eval` - Execute JavaScript\n- `browser_scroll_into_view` - Scroll to elements\n- `browser_resize` - Resize browser window\n- `browser_recent_console_logs` - Get console logs\n- `browser_clear_console_logs` - Clear console logs\n- `browser_take_screenshot` - Take screenshots\n\n**Utilities:**\n- `read_image` - Read and encode image files\n- `about_sketch` - Get help with Sketch functionality"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":4178,"cache_read_input_tokens":0,"output_tokens":304,"service_tier":"standard"}}
572+
{"id":"msg_01MpXPbWAfaBn5voE1Fa5THr","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Here are the tools available to me:\n\n**File & Code Operations:**\n- `bash` - Execute shell commands\n- `patch` - Modify files with precise text edits\n- `keyword_search` - Search for files by content/concepts\n\n**Task Management:**\n- `todo_read` / `todo_write` - Track and manage task lists\n- `think` - Internal notes and planning\n\n**Development Workflow:**\n- `codereview` - Automated code review\n- `done` - Final checklist before completion\n\n**Browser Automation:**\n- `browser_navigate` - Navigate to URLs\n- `browser_click` / `browser_type` - Interact with elements\n- `browser_wait_for` / `browser_get_text` - Wait for and read content\n- `browser_eval` - Execute JavaScript\n- `browser_scroll_into_view` / `browser_resize` - View manipulation\n- `browser_take_screenshot` / `browser_recent_console_logs` - Debugging\n\n**System Info:**\n- `about_sketch` - Information about the Sketch environment\n- `read_image` - Read and encode image files"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":4135,"cache_read_input_tokens":0,"output_tokens":261,"service_tier":"standard"}}

0 commit comments

Comments
 (0)