Skip to content

WebFetchOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  853908024["output_types.WebFetchOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 853908024
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the WebFetch tool.

Source code in src/clawd_code_sdk/models/output_types.py
class WebFetchOutput(TypedDict):
    """``tool_use_result`` for the WebFetch tool."""

    bytes: int
    """Size of the fetched content in bytes."""
    code: int
    """HTTP response code."""
    codeText: str
    """HTTP response code text."""
    result: str
    """Processed result from applying the prompt to the content."""
    durationMs: int
    url: str
    artifactRead: NotRequired[ArtifactReadMarker]
    """Set when the fetched URL is an artifact that now counts as viewed."""

artifactRead instance-attribute

artifactRead: NotRequired[ArtifactReadMarker]

Set when the fetched URL is an artifact that now counts as viewed.

bytes instance-attribute

bytes: int

Size of the fetched content in bytes.

code instance-attribute

code: int

HTTP response code.

codeText instance-attribute

codeText: str

HTTP response code text.

result instance-attribute

result: str

Processed result from applying the prompt to the content.

:fa-brands-github: Show source on GitHub