Skip to main content
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

import { ApplyPatchServerToolOpenRouter } from "@openrouter/sdk/models";

let value: ApplyPatchServerToolOpenRouter = {
  type: "openrouter:apply_patch",
};

Fields

FieldTypeRequiredDescriptionExample
parametersmodels.ApplyPatchServerToolConfig:heavy_minus_sign:Configuration for the openrouter:apply_patch server tool{"engine": "auto"}
type”openrouter:apply_patch”:heavy_check_mark:N/A