ApplyPatchServerToolOpenRouter - Python SDK

ApplyPatchServerToolOpenRouter method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API.

Fields

FieldTypeRequiredDescriptionExample
parametersOptional[components.ApplyPatchServerToolConfig]Configuration for the openrouter:apply_patch server tool{"engine": "auto"}
typecomponents.ApplyPatchServerToolOpenRouterType✔️N/A