> ## 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.

# ApplyPatchServerToolOpenRouter - Python SDK

> ApplyPatchServerToolOpenRouter 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 built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API.

## Fields

| Field        | Type                                                                                                                             | Required             | Description                                               | Example              |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------- | -------------------- |
| `parameters` | [Optional\[components.ApplyPatchServerToolConfig\]](../components/applypatchservertoolconfig.md)                                 | :heavy\_minus\_sign: | Configuration for the openrouter:apply\_patch server tool | `{"engine": "auto"}` |
| `type`       | [components.ApplyPatchServerToolOpenRouterType](/client-sdks/python/api-reference/components/applypatchservertoolopenroutertype) | :heavy\_check\_mark: | N/A                                                       |                      |
