mcpToFunctionTool
function mcpToFunctionTool( mcpTool, server, convertSchemasToStrict): | FunctionTool<unknown, JsonObjectSchemaStrict<any>, string>| FunctionTool<unknown, JsonObjectSchemaNonStrict<any>, string>;Converts an MCP tool definition to a function tool for the Agents SDK.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
{ |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”| FunctionTool<unknown, JsonObjectSchemaStrict<any>, string>
| FunctionTool<unknown, JsonObjectSchemaNonStrict<any>, string>