NotebookEdit tool estimate · request

Stored count_tokens request for NotebookEdit tool estimate.

Record provenance

Measurement
estimate-tool-NotebookEdit
Record ID
a7704918323bd45991d5681affb9b728a0963cfd35d041c62c4c1430a21eb5d1
Exact artifact
raw/count-tokens/a7704918323bd45991d5681affb9b728a0963cfd35d041c62c4c1430a21eb5d1.request.json
JSON
{
  "id": "a7704918323bd45991d5681affb9b728a0963cfd35d041c62c4c1430a21eb5d1",
  "label": "estimate-tool-NotebookEdit",
  "generatedAt": "2026-06-09T00:30:02.310Z",
  "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\":\"Replaces, inserts, or deletes a single cell in a Jupyter notebook (.ipynb file).\\n\\nUsage:\\n- You must use the Read tool on the notebook in this conversation before editing — this tool will fail otherwise.\\n- `notebook_path` must be an absolute path.\\n- `cell_id` is the `id` attribute shown in the Read tool's `<cell id=\\\"...\\\">` output. It is required for `replace` and `delete`.\\n- `edit_mode` defaults to `replace`. Use `insert` to add a new cell after the cell with the given `cell_id` (or at the beginning of the notebook if `cell_id` is omitted) — `cell_type` is required when inserting. Use `delete` to remove the cell.\",\"input_schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"cell_id\":{\"description\":\"The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified.\",\"type\":\"string\"},\"cell_type\":{\"description\":\"The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.\",\"enum\":[\"code\",\"markdown\"],\"type\":\"string\"},\"edit_mode\":{\"description\":\"The type of edit to make (replace, insert, delete). Defaults to replace.\",\"enum\":[\"replace\",\"insert\",\"delete\"],\"type\":\"string\"},\"new_source\":{\"description\":\"The new source for the cell\",\"type\":\"string\"},\"notebook_path\":{\"description\":\"The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)\",\"type\":\"string\"}},\"required\":[\"notebook_path\",\"new_source\"],\"type\":\"object\"},\"name\":\"NotebookEdit\"}"
          }
        ]
      },
      {
        "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": "ad05a5749e7c71c61a0481da1712d1816416fcf431d4f06b7db5705d7c8b4687"
}