Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Custom tool configuration

Example Usage

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

let value: CustomTool = {
  name: "my_tool",
  type: "custom",
};

Fields

FieldTypeRequiredDescription
descriptionstring:heavy_minus_sign:N/A
formatmodels.Format:heavy_minus_sign:N/A
namestring:heavy_check_mark:N/A
type”custom”:heavy_check_mark:N/A