[
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "You are testing deferred tool discovery with approval. When asked to delete a temporary file, first call search_tools, then call load_tool with the exact returned tool name, then call delete_temp_file. Do not skip the tool."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Use deferred tools to delete /tmp/deferred-tool-test.txt. Search for the tool, load it, and call it with that exact path."
						}
					]
				}
			],
			"tools": [
				{
					"name": "search_tools",
					"description": "Search for additional tools that can be loaded when the current toolset is missing a capability.",
					"input_schema": {
						"type": "object",
						"properties": {
							"query": {
								"type": "string",
								"minLength": 1,
								"description": "Keywords describing the capability or integration you need"
							}
						},
						"required": ["query"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "load_tool",
					"description": "Load a deferred tool by exact name. The tool becomes available on the next model turn and remains available for this conversation.",
					"input_schema": {
						"type": "object",
						"properties": {
							"toolName": {
								"type": "string",
								"minLength": 1,
								"description": "Exact tool name returned by search_tools"
							}
						},
						"required": ["toolName"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-haiku-4-5-20251001\",\"id\":\"msg_01U8ixXKGJnyA6CJP5xUDYPN\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"I'll help you delete that file using deferred tools. Let me start by searching for the appropriate tool.\"},{\"type\":\"tool_use\",\"id\":\"toolu_01UG2oYn3s526Qpfv2Y5cwrm\",\"name\":\"search_tools\",\"input\":{\"query\":\"delete temporary file\"},\"caller\":{\"type\":\"direct\"}}],\"stop_reason\":\"tool_use\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":822,\"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\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "10000000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:18Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:19Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:16Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "12000000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:18Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f7be1ab13ec1-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Fri, 03 Jul 2026 09:47:19 GMT",
			"request-id": "req_011Cceus5uEGy1afTMXwajFH",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-5742d46422da95a2397c9163b1435a8f-5b1de7682cc3b91e-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	},
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "You are testing deferred tool discovery with approval. When asked to delete a temporary file, first call search_tools, then call load_tool with the exact returned tool name, then call delete_temp_file. Do not skip the tool."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Use deferred tools to delete /tmp/deferred-tool-test.txt. Search for the tool, load it, and call it with that exact path."
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "I'll help you delete that file using deferred tools. Let me start by searching for the appropriate tool."
						},
						{
							"type": "tool_use",
							"id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"name": "search_tools",
							"input": {
								"query": "delete temporary file"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"content": "{\"results\":[{\"name\":\"delete_temp_file\",\"description\":\"Delete a temporary file at a requested path after approval\",\"loaded\":false}]}"
						}
					]
				}
			],
			"tools": [
				{
					"name": "search_tools",
					"description": "Search for additional tools that can be loaded when the current toolset is missing a capability.",
					"input_schema": {
						"type": "object",
						"properties": {
							"query": {
								"type": "string",
								"minLength": 1,
								"description": "Keywords describing the capability or integration you need"
							}
						},
						"required": ["query"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "load_tool",
					"description": "Load a deferred tool by exact name. The tool becomes available on the next model turn and remains available for this conversation.",
					"input_schema": {
						"type": "object",
						"properties": {
							"toolName": {
								"type": "string",
								"minLength": 1,
								"description": "Exact tool name returned by search_tools"
							}
						},
						"required": ["toolName"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-haiku-4-5-20251001\",\"id\":\"msg_01Grqa8cETmwg6nbjDh9oMwy\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Great! I found the `delete_temp_file` tool. Now let me load it.\"},{\"type\":\"tool_use\",\"id\":\"toolu_01Ws9Gw8qkdAgUapPBdGSmF4\",\"name\":\"load_tool\",\"input\":{\"toolName\":\"delete_temp_file\"},\"caller\":{\"type\":\"direct\"}}],\"stop_reason\":\"tool_use\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":943,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":79,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "10000000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:20Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:20Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:19Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "12000000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:20Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f7d7b93f3ec1-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Fri, 03 Jul 2026 09:47:20 GMT",
			"request-id": "req_011CceusPTutrA3cxyHztNCS",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-edb43ba11b2f82b40c6a5d940f0ea825-cd7645618f5fc2b2-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	},
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "You are testing deferred tool discovery with approval. When asked to delete a temporary file, first call search_tools, then call load_tool with the exact returned tool name, then call delete_temp_file. Do not skip the tool."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Use deferred tools to delete /tmp/deferred-tool-test.txt. Search for the tool, load it, and call it with that exact path."
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "I'll help you delete that file using deferred tools. Let me start by searching for the appropriate tool."
						},
						{
							"type": "tool_use",
							"id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"name": "search_tools",
							"input": {
								"query": "delete temporary file"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"content": "{\"results\":[{\"name\":\"delete_temp_file\",\"description\":\"Delete a temporary file at a requested path after approval\",\"loaded\":false}]}"
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "Great! I found the `delete_temp_file` tool. Now let me load it."
						},
						{
							"type": "tool_use",
							"id": "toolu_01Ws9Gw8qkdAgUapPBdGSmF4",
							"name": "load_tool",
							"input": {
								"toolName": "delete_temp_file"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01Ws9Gw8qkdAgUapPBdGSmF4",
							"content": "{\"status\":\"loaded\",\"toolName\":\"delete_temp_file\",\"tool\":{\"name\":\"delete_temp_file\",\"description\":\"Delete a temporary file at a requested path after approval\",\"loaded\":true},\"message\":\"Tool \\\"delete_temp_file\\\" is loaded and will be available on the next model turn.\"}"
						}
					]
				}
			],
			"tools": [
				{
					"name": "search_tools",
					"description": "Search for additional tools that can be loaded when the current toolset is missing a capability.",
					"input_schema": {
						"type": "object",
						"properties": {
							"query": {
								"type": "string",
								"minLength": 1,
								"description": "Keywords describing the capability or integration you need"
							}
						},
						"required": ["query"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "load_tool",
					"description": "Load a deferred tool by exact name. The tool becomes available on the next model turn and remains available for this conversation.",
					"input_schema": {
						"type": "object",
						"properties": {
							"toolName": {
								"type": "string",
								"minLength": 1,
								"description": "Exact tool name returned by search_tools"
							}
						},
						"required": ["toolName"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "delete_temp_file",
					"description": "Delete a temporary file at a requested path after approval",
					"input_schema": {
						"type": "object",
						"properties": {
							"path": {
								"type": "string",
								"description": "Temporary file path to delete"
							}
						},
						"required": ["path"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-haiku-4-5-20251001\",\"id\":\"msg_011uWLuKmy1XGbDa6VFV4EQp\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Perfect! The tool is now loaded. Now let me call it to delete the file at the exact path you specified.\"},{\"type\":\"tool_use\",\"id\":\"toolu_01Q82FfxweQBK4RdiadwoKt8\",\"name\":\"delete_temp_file\",\"input\":{\"path\":\"/tmp/deferred-tool-test.txt\"},\"caller\":{\"type\":\"direct\"}}],\"stop_reason\":\"tool_use\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":1197,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":90,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "9999000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:21Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:21Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:21Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "11999000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:21Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f7e02cd23ec1-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Fri, 03 Jul 2026 09:47:22 GMT",
			"request-id": "req_011CceusV5kM1MrxeuvaHbCy",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-4661612fada87cb122e339dd689e4ca8-ab9e2906a1ac5e31-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	},
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "You are testing deferred tool discovery with approval. When asked to delete a temporary file, first call search_tools, then call load_tool with the exact returned tool name, then call delete_temp_file. Do not skip the tool."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Use deferred tools to delete /tmp/deferred-tool-test.txt. Search for the tool, load it, and call it with that exact path."
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "I'll help you delete that file using deferred tools. Let me start by searching for the appropriate tool."
						},
						{
							"type": "tool_use",
							"id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"name": "search_tools",
							"input": {
								"query": "delete temporary file"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01UG2oYn3s526Qpfv2Y5cwrm",
							"content": "{\"results\":[{\"name\":\"delete_temp_file\",\"description\":\"Delete a temporary file at a requested path after approval\",\"loaded\":false}]}"
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "Great! I found the `delete_temp_file` tool. Now let me load it."
						},
						{
							"type": "tool_use",
							"id": "toolu_01Ws9Gw8qkdAgUapPBdGSmF4",
							"name": "load_tool",
							"input": {
								"toolName": "delete_temp_file"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01Ws9Gw8qkdAgUapPBdGSmF4",
							"content": "{\"status\":\"loaded\",\"toolName\":\"delete_temp_file\",\"tool\":{\"name\":\"delete_temp_file\",\"description\":\"Delete a temporary file at a requested path after approval\",\"loaded\":true},\"message\":\"Tool \\\"delete_temp_file\\\" is loaded and will be available on the next model turn.\"}"
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "Perfect! The tool is now loaded. Now let me call it to delete the file at the exact path you specified."
						},
						{
							"type": "tool_use",
							"id": "toolu_01Q82FfxweQBK4RdiadwoKt8",
							"name": "delete_temp_file",
							"input": {
								"path": "/tmp/deferred-tool-test.txt"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01Q82FfxweQBK4RdiadwoKt8",
							"content": "{\"deleted\":true,\"path\":\"/tmp/deferred-tool-test.txt\"}"
						}
					]
				}
			],
			"tools": [
				{
					"name": "search_tools",
					"description": "Search for additional tools that can be loaded when the current toolset is missing a capability.",
					"input_schema": {
						"type": "object",
						"properties": {
							"query": {
								"type": "string",
								"minLength": 1,
								"description": "Keywords describing the capability or integration you need"
							}
						},
						"required": ["query"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "load_tool",
					"description": "Load a deferred tool by exact name. The tool becomes available on the next model turn and remains available for this conversation.",
					"input_schema": {
						"type": "object",
						"properties": {
							"toolName": {
								"type": "string",
								"minLength": 1,
								"description": "Exact tool name returned by search_tools"
							}
						},
						"required": ["toolName"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				},
				{
					"name": "delete_temp_file",
					"description": "Delete a temporary file at a requested path after approval",
					"input_schema": {
						"type": "object",
						"properties": {
							"path": {
								"type": "string",
								"description": "Temporary file path to delete"
							}
						},
						"required": ["path"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-haiku-4-5-20251001\",\"id\":\"msg_01P38CnFzc6QGe3vABxRhWxU\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Success! I've successfully completed the deferred tool workflow:\\n\\n1. ✅ **Searched** for the tool using `search_tools` - found `delete_temp_file`\\n2. ✅ **Loaded** the tool using `load_tool` with the exact name returned\\n3. ✅ **Called** `delete_temp_file` with the exact path `/tmp/deferred-tool-test.txt`\\n\\nThe file at `/tmp/deferred-tool-test.txt` has been deleted successfully.\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":1318,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":122,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "9999000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:22Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:23Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:22Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "11999000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:22Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f7e85d4d3ec1-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Fri, 03 Jul 2026 09:47:23 GMT",
			"request-id": "req_011CceusaipqbLs9ZkdfnTZ5",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-b32f26baecdaa7815b3323857ed9a853-ff278e610a51b2eb-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	}
]
