> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OutputApplyPatchServerToolItem - Go SDK

> OutputApplyPatchServerToolItem type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

An openrouter:apply\_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn.

## Fields

| Field       | Type                                                                                                                     | Required             | Description                                                                                                                       | Example                                                                                                                         |
| ----------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `CallID`    | `*string`                                                                                                                | :heavy\_minus\_sign: | N/A                                                                                                                               |                                                                                                                                 |
| `ID`        | `*string`                                                                                                                | :heavy\_minus\_sign: | N/A                                                                                                                               |                                                                                                                                 |
| `Operation` | [\*components.ApplyPatchCallOperation](/client-sdks/go/api-reference/models/applypatchcalloperation)                     | :heavy\_minus\_sign: | The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. | `{"diff": "@@ function main() {\n+  console.log(\"hi\");\n }`",<br />"path": "/src/main.ts",<br />"type": "update\_file"<br />} |
| `Status`    | [components.ToolCallStatus](/client-sdks/go/api-reference/models/toolcallstatus)                                         | :heavy\_check\_mark: | N/A                                                                                                                               | completed                                                                                                                       |
| `Type`      | [components.OutputApplyPatchServerToolItemType](/client-sdks/go/api-reference/models/outputapplypatchservertoolitemtype) | :heavy\_check\_mark: | N/A                                                                                                                               |                                                                                                                                 |
