WebFetch tool estimate · request
Stored count_tokens request for WebFetch tool estimate.
Record provenance
- Measurement
estimate-tool-WebFetch- Record ID
b74458e167d60b28d3ae846d8f9b861e308ac654c3aa0d1a4ac96a3766cec469- Exact artifact
raw/count-tokens/b74458e167d60b28d3ae846d8f9b861e308ac654c3aa0d1a4ac96a3766cec469.request.json
{
"id": "b74458e167d60b28d3ae846d8f9b861e308ac654c3aa0d1a4ac96a3766cec469",
"label": "estimate-tool-WebFetch",
"generatedAt": "2026-06-09T00:30:05.458Z",
"url": "https://api.anthropic.com/v1/messages/count_tokens?beta=true",
"headers": {
"anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24,token-counting-2024-11-01",
"anthropic-version": "2023-06-01",
"content-type": "application/json",
"x-api-key": "<redacted>"
},
"body": {
"model": "claude-opus-4-8",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "<system-reminder>\nAs you answer the user's questions, you can use the following context:\n# currentDate\nToday's date is 2026-06-08.\n\n IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.\n</system-reminder>\n\n"
},
{
"type": "text",
"text": "say hi",
"cache_control": {
"type": "ephemeral"
}
},
{
"type": "text",
"text": "{\"description\":\"Fetches a URL, converts the page to markdown, and answers `prompt` against it using a small fast model.\\n\\n- Fails on authenticated/private URLs — use an authenticated MCP tool or `gh` for those instead.\\n- HTTP is upgraded to HTTPS. Cross-host redirects are returned to you rather than followed; call again with the redirect URL.\\n- Responses are cached for 15 minutes per URL.\",\"input_schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"prompt\":{\"description\":\"The prompt to run on the fetched content\",\"type\":\"string\"},\"url\":{\"description\":\"The URL to fetch content from\",\"format\":\"uri\",\"type\":\"string\"}},\"required\":[\"url\",\"prompt\"],\"type\":\"object\"},\"name\":\"WebFetch\"}"
}
]
},
{
"role": "system",
"content": "The following skills are available for use with the Skill tool:\n\n- deep-research: \n- update-config: \n- keybindings-help: \n- verify: \n- code-review: \n- simplify: \n- fewer-permission-prompts: \n- loop: \n- claude-api: \n- run: \n- init: \n- review: \n- security-review: "
}
],
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
},
"system": [
{
"type": "text",
"text": "x-anthropic-billing-header: cc_version=2.1.168.c27; cc_entrypoint=sdk-ts; cch=e5b75;"
},
{
"type": "text",
"text": "You are a Claude agent, built on Anthropic's Claude Agent SDK.",
"cache_control": {
"type": "ephemeral"
}
}
]
},
"bodyCanonicalSha256": "eb3bdf0b9f7505750aa4ca76bb1e7e416d386577f54008770ef68dd2d4c5773b"
}