AskUserQuestion tool estimate · request

Stored count_tokens request for AskUserQuestion tool estimate.

Record provenance

Measurement
estimate-tool-AskUserQuestion
Record ID
ac6cfb282e4d237d18d0c1698cb99a3b3ea1d3ad71dcb930d242f43e9f05cf4c
Exact artifact
raw/count-tokens/ac6cfb282e4d237d18d0c1698cb99a3b3ea1d3ad71dcb930d242f43e9f05cf4c.request.json
JSON
{
  "id": "ac6cfb282e4d237d18d0c1698cb99a3b3ea1d3ad71dcb930d242f43e9f05cf4c",
  "label": "estimate-tool-AskUserQuestion",
  "generatedAt": "2026-06-09T00:30:00.259Z",
  "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\":\"Use this tool only when you are blocked on a decision that is genuinely the user's to make: one you cannot resolve from the request, the code, or sensible defaults.\\n\\nUsage notes:\\n- Users will always be able to select \\\"Other\\\" to provide custom text input\\n- Use multiSelect: true to allow multiple answers to be selected for a question\\n- If you recommend a specific option, make that the first option in the list and add \\\"(Recommended)\\\" at the end of the label\\n\\nPlan mode note: To switch into plan mode, use EnterPlanMode (not this tool). Once in plan mode, use this tool to clarify requirements or choose between approaches BEFORE finalizing your plan. Do NOT use this tool to ask \\\"Is my plan ready?\\\", \\\"Should I proceed?\\\", or otherwise reference \\\"the plan\\\" in questions — the user cannot see the plan until you call ExitPlanMode for approval.\\n\\nReserve this for decisions where the user's answer changes what you do next — not for choices with a conventional default or facts you can verify in the codebase yourself. In those cases pick the obvious option, mention it in your response, and proceed.\\n\",\"input_schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"annotations\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"notes\":{\"description\":\"Free-text notes the user added to their selection.\",\"type\":\"string\"},\"preview\":{\"description\":\"The preview content of the selected option, if the question used previews.\",\"type\":\"string\"}},\"type\":\"object\"},\"description\":\"Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.\",\"propertyNames\":{\"type\":\"string\"},\"type\":\"object\"},\"answers\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"User answers collected by the permission component\",\"propertyNames\":{\"type\":\"string\"},\"type\":\"object\"},\"metadata\":{\"additionalProperties\":false,\"description\":\"Optional metadata for tracking and analytics purposes. Not displayed to user.\",\"properties\":{\"source\":{\"description\":\"Optional identifier for the source of this question (e.g., \\\"remember\\\" for /remember command). Used for analytics tracking.\",\"type\":\"string\"}},\"type\":\"object\"},\"questions\":{\"description\":\"Questions to ask the user (1-4 questions)\",\"items\":{\"additionalProperties\":false,\"properties\":{\"header\":{\"description\":\"Very short label displayed as a chip/tag (max 12 chars). Examples: \\\"Auth method\\\", \\\"Library\\\", \\\"Approach\\\".\",\"type\":\"string\"},\"multiSelect\":{\"default\":false,\"description\":\"Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.\",\"type\":\"boolean\"},\"options\":{\"description\":\"The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.\",\"items\":{\"additionalProperties\":false,\"properties\":{\"description\":{\"description\":\"Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.\",\"type\":\"string\"},\"label\":{\"description\":\"The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.\",\"type\":\"string\"},\"preview\":{\"description\":\"Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.\",\"type\":\"string\"}},\"required\":[\"label\",\"description\"],\"type\":\"object\"},\"maxItems\":4,\"minItems\":2,\"type\":\"array\"},\"question\":{\"description\":\"The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: \\\"Which library should we use for date formatting?\\\" If multiSelect is true, phrase it accordingly, e.g. \\\"Which features do you want to enable?\\\"\",\"type\":\"string\"}},\"required\":[\"question\",\"header\",\"options\",\"multiSelect\"],\"type\":\"object\"},\"maxItems\":4,\"minItems\":1,\"type\":\"array\"}},\"required\":[\"questions\"],\"type\":\"object\"},\"name\":\"AskUserQuestion\"}"
          }
        ]
      },
      {
        "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": "123b92a94d2d7e26f11ba5dc663e1183416bb68abf572d47ddc3d288ca1e09c1"
}