CustomTool - TypeScript SDK

CustomTool type definition

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

Custom tool configuration

Example Usage

1import { CustomTool } from "@openrouter/sdk/models";
2
3let value: CustomTool = {
4 name: "my_tool",
5 type: "custom",
6};

Fields

FieldTypeRequiredDescription
descriptionstringN/A
formatmodels.FormatN/A
namestring✔️N/A
type”custom”✔️N/A