@devries-cameron20 / composio Mirror · read-only / commits / e26e0b7a0
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 20:45 UTC

Docs: Modifiers nested structure removal (#1971)

Sushmitha Mallesh committed Sep 25, 2025 at 23:52 UTC e26e0b7a07dce1a71d7e4f7ddcc98ed8a5289741
8 files changed +24 -27
fern/docs.yml
+9 -12
@@ -125,18 +125,15 @@ navigation:
125 - page: Executing Tools
126 path: pages/dist/tool-calling/executing-tools.mdx
127 slug: executing-tools
128 - - section: Modifiers
129 - slug: modifiers
130 - contents:
131 - - page: Schema Modifiers
132 - path: pages/dist/tool-calling/schema-modifiers.mdx
133 - slug: schema-modifiers
134 - - page: Before Tool Execution
135 - path: pages/dist/tool-calling/before-execution-modifiers.mdx
136 - slug: before-execution
137 - - page: After Tool Execution
138 - path: pages/dist/tool-calling/after-execution-modifiers.mdx
139 - slug: after-execution
128 + - page: Modifying tool schemas
129 + path: pages/dist/tool-calling/schema-modifiers.mdx
130 + slug: modifying-tool-schemas
131 + - page: Modifying tool inputs
132 + path: pages/dist/tool-calling/before-execution-modifiers.mdx
133 + slug: modifying-tool-inputs
134 + - page: Modifying tool outputs
135 + path: pages/dist/tool-calling/after-execution-modifiers.mdx
136 + slug: modifying-tool-outputs
137 - page: Custom tools
138 path: pages/dist/tool-calling/custom-tools.mdx
139 slug: custom-tools
fern/pages/src/authentication/custom-auth-params.mdx
+2 -2
@@ -31,7 +31,7 @@ const composio = new Composio({
31
32 Define a function that modifies authentication parameters for specific toolkits. This function checks the toolkit name and adds custom authentication headers when needed.
33
34 -<Card title="This is a Before Execute Modifier!" href="/docs/modifiers/before-execution" icon="fa-magic">
34 +<Card title="This is a Before Execute Modifier!" href="/docs/modifying-tool-inputs" icon="fa-magic">
35
36 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.
37 </Card>
@@ -91,7 +91,7 @@ Execute the tool using the custom authentication modifier. The `beforeExecute` h
91
92 Following is an example of how to execute a tool with a custom authentication modifier for Completion Providers.
93
94 -For Agentic Providers, read about [Before Execution Modifiers](/docs/modifiers/before-execution).
94 +For Agentic Providers, read about [Modifying tool inputs](/docs/modifying-tool-inputs).
95
96 <CodeGroup>
97 ```python Python maxLines=20
fern/pages/src/get-started/dev-setup.mdx
+3 -3
@@ -57,9 +57,9 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t
57 - [Executing Tools](https://docs.composio.dev/docs/executing-tools.mdx): Learn how to execute Composio's tools with different providers and frameworks
58 - [Authenticating Tools](https://docs.composio.dev/docs/authenticating-tools.mdx): Learn how to authenticate tools
59 - [Fetching and Filtering Tools](https://docs.composio.dev/docs/fetching-tools.mdx): Learn how to fetch and filter Composio's tools and toolkits
60 -- [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.
61 -- [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.
62 -- [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.
60 +- [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.
61 +- [Modifying tool inputs](https://docs.composio.dev/docs/modifying-tool-inputs): Learn how to use before execution modifiers to modify tool arguments before execution.
62 +- [Modifying tool outputs](https://docs.composio.dev/docs/modifying-tool-outputs): Learn how to use after execution modifiers to transform tool results after execution.
63 - [Creating custom tools](https://docs.composio.dev/docs/custom-tools.mdx): Learn how to extend Composio's toolkits with your own tools
64 - [Custom Auth Configs](https://docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customizing auth configs for a toolkit
65 - [Programmatic Auth Configs](https://docs.composio.dev/docs/programmatic-auth-configs.mdx): Guide to creating auth configs programmatically
fern/pages/src/get-started/welcome.mdx
+2 -2
@@ -15,9 +15,9 @@ Composio is the fastest way to enable your AI agents to take real-world actions
15 - **Access 3000+ tools** out of the box across popular apps like Slack, GitHub, Notion, and more. [Browse tools →](/toolkits/introduction)
16 - **Enforce strict access and data controls** with [fine-grained permissions](/docs/authenticating-tools) for each tool and user.
17 - **Trigger agents and workflows** using [external events](/docs/using-triggers) (e.g., new message in Slack, new issue in GitHub).
18 -- **Customize tools** for your proprietary APIs or internal functions via [modifiers](/docs/modifiers/schema-modifiers).
18 +- **Customize tools** for your proprietary APIs or internal functions via [modifiers](/docs/modifying-tool-schemas).
19 - **Integrate seamlessly** with frameworks like OpenAI, Anthropic, LangChain, Vercel AI SDK, and more.
20 -- **Enhance reliability** with [input/output processing hooks](/docs/modifiers/before-execution) to clean or transform data on the fly.
20 +- **Enhance reliability** with [input/output processing hooks](/docs/modifying-tool-inputs) to clean or transform data on the fly.
21
22 No more writing dozens of integrations. Composio handles auth, tool normalization, and execution—so your agents can focus on reasoning, not plumbing.
23
fern/pages/src/migration-guide.mdx
+5 -5
@@ -260,7 +260,7 @@ While tool processors could previously be applied during SDK initialization, too
260 - **Chat Completion providers**: Modifiers are specified and applied during tool execution
261 - **Agentic frameworks**: Modifiers are specified and applied during tool fetching
262
263 -#### [Schema Modifiers](/docs/modifiers/schema-modifiers)
263 +#### [Schema Modifiers](/docs/modifying-tool-schemas)
264
265 The following example demonstrates schema modifier usage, applicable across all providers:
266
@@ -297,9 +297,9 @@ tools = composio.tools.get(
297 />
298 </CodeGroup>
299
300 -#### [Before Modifiers](/docs/modifiers/before-execution)
300 +#### [Before Modifiers](/docs/modifying-tool-inputs)
301
302 -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):
302 +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):
303
304 <CodeGroup>
305 ```python Python (current)
@@ -324,9 +324,9 @@ tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_LATEST_POSTS")
324 />
325 </CodeGroup>
326
327 -#### [After Modifiers](/docs/modifiers/after-execution)
327 +#### [After Modifiers](/docs/modifying-tool-outputs)
328
329 -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):
329 +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):
330
331 <CodeGroup>
332
fern/pages/src/providers/anthropic.mdx
+1 -1
@@ -103,4 +103,4 @@ console.log(JSON.parse(res[0]).details);
103 ## Modifiers
104 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.
105
106 -Anthropic provider modifiers are the standard framework modifiers. Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers).
\ No newline at end of file
106 +Anthropic provider modifiers are the standard framework modifiers. Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas).
\ No newline at end of file
fern/pages/src/providers/google.mdx
+1 -1
@@ -53,5 +53,5 @@ npm i @composio/core @composio/gemini
53 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.
54
55 OpenAI provider modifiers are the standard framework modifiers.
56 -Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers)
56 +Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas)
57
fern/pages/src/providers/openai.mdx
+1 -1
@@ -108,5 +108,5 @@ if (toolCall) {
108 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.
109
110 OpenAI provider modifiers are the standard framework modifiers.
111 -Read more here: [Framework Modifiers](/docs/modifiers/schema-modifiers)
111 +Read more here: [Modifying tool schemas](/docs/modifying-tool-schemas)
112