Skip to content

WebSearchInput

Base classes

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

⋔ Inheritance diagram

graph TD
  658922655["input_types.WebSearchInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 658922655
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the WebSearch tool. Searches the web and returns formatted results.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class WebSearchInput(TypedDict):
    """Input for the WebSearch tool. Searches the web and returns formatted results."""

    query: str
    """The search query to use."""
    allowed_domains: NotRequired[list[str]]
    """Only include results from these domains."""
    blocked_domains: NotRequired[list[str]]
    """Never include results from these domains."""

allowed_domains instance-attribute

allowed_domains: NotRequired[list[str]]

Only include results from these domains.

blocked_domains instance-attribute

blocked_domains: NotRequired[list[str]]

Never include results from these domains.

query instance-attribute

query: str

The search query to use.

:fa-brands-github: Show source on GitHub