ApplyPatchServerToolOpenRouter - TypeScript SDK

ApplyPatchServerToolOpenRouter type definition

The TypeScript 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.

Example Usage

1import { ApplyPatchServerToolOpenRouter } from "@openrouter/sdk/models";
2
3let value: ApplyPatchServerToolOpenRouter = {
4 type: "openrouter:apply_patch",
5};

Fields

FieldTypeRequiredDescriptionExample
parametersmodels.ApplyPatchServerToolConfigConfiguration for the openrouter:apply_patch server tool{"engine": "auto"}
type”openrouter:apply_patch”✔️N/A