---
title: "ApplyPatchServerToolOpenRouter"
---

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.mdx)       | :heavy_minus_sign:                                                                                   | Configuration for the openrouter:apply_patch server tool                                             | \{<br/>"engine": "auto"<br/>}                                                                         |
| `type`                                                                                               | [components.ApplyPatchServerToolOpenRouterType](../components/applypatchservertoolopenroutertype.mdx) | :heavy_check_mark:                                                                                   | N/A                                                                                                  |                                                                                                      |