Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Docs: Modifiers nested structure removal (#1971)
Sushmitha Malleshe26e0b7a07dc
diff --git a/fern/docs.yml b/fern/docs.ymlindex e2dd68f86..9b79aaf2a 100644--- a/fern/docs.yml+++ b/fern/docs.yml@@ -125,18 +125,15 @@ navigation:- page: Executing Toolspath: pages/dist/tool-calling/executing-tools.mdxslug: executing-tools- - section: Modifiers- slug: modifiers- contents:- - page: Schema Modifiers- path: pages/dist/tool-calling/schema-modifiers.mdx- slug: schema-modifiers- - page: Before Tool Execution- path: pages/dist/tool-calling/before-execution-modifiers.mdx- slug: before-execution- - page: After Tool Execution- path: pages/dist/tool-calling/after-execution-modifiers.mdx- slug: after-execution+ - page: Modifying tool schemas+ path: pages/dist/tool-calling/schema-modifiers.mdx+ slug: modifying-tool-schemas+ - page: Modifying tool inputs+ path: pages/dist/tool-calling/before-execution-modifiers.mdx+ slug: modifying-tool-inputs+ - page: Modifying tool outputs+ path: pages/dist/tool-calling/after-execution-modifiers.mdx+ slug: modifying-tool-outputs- page: Custom toolspath: pages/dist/tool-calling/custom-tools.mdxslug: custom-toolsdiff --git a/fern/pages/src/authentication/custom-auth-params.mdx b/fern/pages/src/authentication/custom-auth-params.mdxindex ae6067571..99e40fc78 100644--- a/fern/pages/src/authentication/custom-auth-params.mdx+++ b/fern/pages/src/authentication/custom-auth-params.mdx@@ -31,7 +31,7 @@ const composio = new Composio({Define a function that modifies authentication parameters for specific toolkits. This function checks the toolkit name and adds custom authentication headers when needed.-<Card title="This is a Before Execute Modifier!" href="/docs/modifiers/before-execution" icon="fa-magic">+<Card title="This is a Before Execute Modifier!" href="/docs/modifying-tool-inputs" icon="fa-magic">Before Execute Modifiers are a way to modify the parameters of a tool before it is executed. In this case, they are useful for adding custom authentication headers or parameters to a tool.</Card>@@ -91,7 +91,7 @@ Execute the tool using the custom authentication modifier. The `beforeExecute` hFollowing is an example of how to execute a tool with a custom authentication modifier for Completion Providers.-For Agentic Providers, read about [Before Execution Modifiers](/docs/modifiers/before-execution).+For Agentic Providers, read about [Modifying tool inputs](/docs/modifying-tool-inputs).<CodeGroup>```python Python maxLines=20diff --git a/fern/pages/src/get-started/dev-setup.mdx b/fern/pages/src/get-started/dev-setup.mdxindex d070355f5..66c1f869b 100644--- a/fern/pages/src/get-started/dev-setup.mdx+++ b/fern/pages/src/get-started/dev-setup.mdx@@ -57,9 +57,9 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t- [Executing Tools](https://docs.composio.dev/docs/executing-tools.mdx): Learn how to execute Composio's tools with different providers and frameworks- [Authenticating Tools](https://docs.composio.dev/docs/authenticating-tools.mdx): Learn how to authenticate tools- [Fetching and Filtering Tools](https://docs.composio.dev/docs/fetching-tools.mdx): Learn how to fetch and filter Composio's tools and toolkits-- [Schema Modifiers](https://docs.composio.dev/docs/modifiers/schema-modifiers.mdx): Learn how to use schema modifiers to transform tool schemas before they are seen by agents.-- [Before Execution Modifiers](https://docs.composio.dev/docs/modifiers/before-execution.mdx): Learn how to use before execution modifiers to modify tool arguments before execution.-- [After Execution Modifiers](https://docs.composio.dev/docs/modifiers/after-execution.mdx): Learn how to use after execution modifiers to transform tool results after execution.+- [Modifying tool schemas](https://docs.composio.dev/docs/modifying-tool-schemas): Learn how to use schema modifiers to transform tool schemas before they are seen by agents.+- [Modifying tool inputs](https://docs.composio.dev/docs/modifying-tool-inputs): Learn how to use before execution modifiers to modify tool arguments before execution.+- [Modifying tool outputs](https://docs.composio.dev/docs/modifying-tool-outputs): Learn how to use after execution modifiers to transform tool results after execution.- [Creating custom tools](https://docs.composio.dev/docs/custom-tools.mdx): Learn how to extend Composio's toolkits with your own tools- [Custom Auth Configs](https://docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customizing auth configs for a toolkit- [Programmatic Auth Configs](https://docs.composio.dev/docs/programmatic-auth-configs.mdx): Guide to creating auth configs programmaticallydiff --git a/fern/pages/src/get-started/welcome.mdx b/fern/pages/src/get-started/welcome.mdxindex 784b4b810..029d83c2d 100644--- a/fern/pages/src/get-started/welcome.mdx+++ b/fern/pages/src/get-started/welcome.mdx@@ -15,9 +15,9 @@ Composio is the fastest way to enable your AI agents to take real-world actions- **Access 3000+ tools** out of the box across popular apps like Slack, GitHub, Notion, and more. [Browse tools →](/toolkits/introduction)- **Enforce strict access and data controls** with [fine-grained permissions](/docs/authenticating-tools) for each tool and user.- **Trigger agents and workflows** using [external events](/docs/using-triggers) (e.g., new message in Slack, new issue in GitHub).-- **Customize tools** for your proprietary APIs or internal functions via [modifiers](/docs/modifiers/schema-modifiers).+- **Customize tools** for your proprietary APIs or internal functions via [modifiers](/docs/modifying-tool-schemas).- **Integrate seamlessly** with frameworks like OpenAI, Anthropic, LangChain, Vercel AI SDK, and more.-- **Enhance reliability** with [input/output processing hooks](/docs/modifiers/before-execution) to clean or transform data on the fly.+- **Enhance reliability** with [input/output processing hooks](/docs/modifying-tool-inputs) to clean or transform data on the fly.No more writing dozens of integrations. Composio handles auth, tool normalization, and execution—so your agents can focus on reasoning, not plumbing.diff --git a/fern/pages/src/migration-guide.mdx b/fern/pages/src/migration-guide.mdxindex bca4227c1..149e41dcb 100644--- a/fern/pages/src/migration-guide.mdx+++ b/fern/pages/src/migration-guide.mdx@@ -260,7 +260,7 @@ While tool processors could previously be applied during SDK initialization, too- **Chat Completion providers**: Modifiers are specified and applied during tool execution- **Agentic frameworks**: Modifiers are specified and applied during tool fetching-#### [Schema Modifiers](/docs/modifiers/schema-modifiers)+#### [Schema Modifiers](/docs/modifying-tool-schemas)The following example demonstrates schema modifier usage, applicable across all providers:@@ -297,9 +297,9 @@ tools = composio.tools.get(/></CodeGroup>-#### [Before Modifiers](/docs/modifiers/before-execution)+#### [Before Modifiers](/docs/modifying-tool-inputs)-The following example shows creating and using a before modifier for a Chat Completion provider. For agentic frameworks, view the [complete before modifier documentation](/docs/modifiers/before-execution):+The following example shows creating and using a before modifier for a Chat Completion provider. For agentic frameworks, view the [complete before modifier documentation](/docs/modifying-tool-inputs):<CodeGroup>```python Python (current)@@ -324,9 +324,9 @@ tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_LATEST_POSTS")/></CodeGroup>-#### [After Modifiers](/docs/modifiers/after-execution)+#### [After Modifiers](/docs/modifying-tool-outputs)-The following example shows creating and using an after modifier for a Chat Completion provider. For agentic frameworks, view the [complete after modifier documentation](/docs/modifiers/after-execution):+The following example shows creating and using an after modifier for a Chat Completion provider. For agentic frameworks, view the [complete after modifier documentation](/docs/modifying-tool-outputs):<CodeGroup>diff --git a/fern/pages/src/providers/anthropic.mdx b/fern/pages/src/providers/anthropic.mdxindex 5c7700357..fe3e52b74 100644--- a/fern/pages/src/providers/anthropic.mdx+++ b/fern/pages/src/providers/anthropic.mdx@@ -103,4 +103,4 @@ console.log(JSON.parse(res[0]).details);## ModifiersModifiers are functions that can be used to intercept and optionally modify the schema, the tool call request and the response from the tool call.-Anthropic provider modifiers are the standard framework modifiers. Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers).\ No newline at end of file+Anthropic provider modifiers are the standard framework modifiers. Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas).\ No newline at end of filediff --git a/fern/pages/src/providers/google.mdx b/fern/pages/src/providers/google.mdxindex 7cc66cf04..b442f6d87 100644--- a/fern/pages/src/providers/google.mdx+++ b/fern/pages/src/providers/google.mdx@@ -53,5 +53,5 @@ npm i @composio/core @composio/geminiModifiers are functions that can be used to intercept and optionally **modify** the schema, the tool call request and the response from the tool call.OpenAI provider modifiers are the standard framework modifiers.-Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers)+Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas)diff --git a/fern/pages/src/providers/openai.mdx b/fern/pages/src/providers/openai.mdxindex 76b7408ec..88e38953d 100644--- a/fern/pages/src/providers/openai.mdx+++ b/fern/pages/src/providers/openai.mdx@@ -108,5 +108,5 @@ if (toolCall) {Modifiers are functions that can be used to intercept and optionally **modify** the schema, the tool call request and the response from the tool call.OpenAI provider modifiers are the standard framework modifiers.-Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers)+Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas)