Prerequisites
- An API token. See Backoffice Developer Console.
Requirements
- Tool spec:
{ "name": "web_extract", "type": "web_extract_v1" } - No
tool_contextrequired
Basic request and response
This example validates a request that enables the web fetch tool:POST /messages.
Response blocks
Zylon runs this tool on the server. The response contains aserver_tool_use block with the call, followed by a web_fetch_tool_result block with the result. The call ID starts with srvtoolu_. Don’t send a tool_result back for it.
is_error field. To detect a failure, check whether content.type ends in _error, then read content.error_code.
With the Zylon extension enabled (system.extensions includes zylon), the result is returned as a plain tool_result block with text content instead.
See Migrating from 1.57 to 1.58 for the full list of server tool blocks.
Tips
- The URL must appear in the user message.
- Keep the prompt concise to reduce extraction time.
Next steps
- Learn how messages return tool blocks: Messages