Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: modifySchema

[email protected]7ec2186face4
diff --git a/fern/pages/src/tool-calling/schema-modifiers.mdx b/fern/pages/src/tool-calling/schema-modifiers.mdx
index c7864a365..ac1a6cfd0 100644
--- a/fern/pages/src/tool-calling/schema-modifiers.mdx
+++ b/fern/pages/src/tool-calling/schema-modifiers.mdx
@@ -61,7 +61,7 @@ const tools = await composio.tools.get(
tools: ["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
},
{
- modifyToolSchema: ({ toolSlug, toolkitSlug, schema }) => {
+ modifySchema: ({ toolSlug, toolkitSlug, schema }) => {
if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
const { inputParameters } = schema;
if (inputParameters?.properties) {
@@ -154,7 +154,7 @@ const tools = await composio.tools.get(
tools: ['HACKERNEWS_GET_LATEST_POSTS', 'HACKERNEWS_GET_USER'],
},
{
- modifyToolSchema: ({ toolSlug, toolkitSlug, schema }) => {
+ modifySchema: ({ toolSlug, toolkitSlug, schema }) => {
if (toolSlug === 'HACKERNEWS_GET_LATEST_POSTS') {
const { inputParameters } = schema;
if (inputParameters?.properties) {