> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://openrouter.ai/docs/llms.txt.
> For full documentation content, see https://openrouter.ai/docs/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://openrouter.ai/docs/_mcp/server.

# OutputWebSearchServerToolItemAction - Python SDK

The Python SDK and docs are currently in beta.
Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).

The search action performed, matching OpenAI web\_search\_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider.

## Fields

| Field     | Type                                                                                                                           | Required             | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ----------- |
| `query`   | *str*                                                                                                                          | :heavy\_check\_mark: | N/A         |
| `sources` | List\[[components.OutputWebSearchServerToolItemSource](/docs/sdks/components/components/outputwebsearchservertoolitemsource)]  | :heavy\_minus\_sign: | N/A         |
| `type`    | [components.OutputWebSearchServerToolItemTypeSearch](/docs/sdks/components/components/outputwebsearchservertoolitemtypesearch) | :heavy\_check\_mark: | N/A         |