ToolChoiceMCP interface

Use this option to force the model to call a specific tool on a remote MCP server.

Extends

Properties

name

The name of the tool to invoke on the MCP server identified by server_label.

server_label

The label of the MCP server to use.

type

For MCP tools, the type is always mcp.

Property Details

name

The name of the tool to invoke on the MCP server identified by server_label.

name?: string

Property Value

string

server_label

The label of the MCP server to use.

server_label: string

Property Value

string

type

For MCP tools, the type is always mcp.

type: "mcp"

Property Value

"mcp"