> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatServerToolChoice - Python SDK

> ChatServerToolChoice method reference

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

OpenRouter extension: force a specific server tool by naming it directly in `tool_choice.type` instead of wrapping it in `{ type: "function", function: { name } }`.

## Fields

| Field  | Type  | Required             | Description                                                                                              | Example                |
| ------ | ----- | -------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------- |
| `type` | *str* | :heavy\_check\_mark: | OpenRouter server-tool type to force (e.g. `openrouter:web_search`, `web_search`, `web_search_preview`). | openrouter:web\_search |
