POST
/
v1
/
tools
/
web-fetch
{
  "content": [
    {
      "type": "text",
      "text": "This is the main content extracted from the web page..."
    }
  ],
  "is_error": false
}

Body

application/json

Request body for fetching web content. The last user message must contain a valid URL.

Request body for web content fetching using the tool.

url
string
required

The URL of the web page to fetch and extract content from.

Examples:

"https://example.com/article"

Response

Web content fetched successfully.

Response returned from tool-based operations.

content
Content · array
required

List of content blocks generated by the tool. Blocks can include plain text, citations, source attributions, or images.

is_error
boolean
default:false

True if the tool encountered an error during execution.