@devries-cameron20 / composio-1 / commits / dbdc8af89
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.

docs: update get tools references

angrybayblade committed Jun 20, 2025 at 19:41 UTC dbdc8af8917ee3cace2a3f442105debe3abde255
2 files changed +7 -6
fern/pages/src/tool-calling/executing-tools.mdx
+3 -2
@@ -262,9 +262,10 @@ console.log(result.data); // Contains Google Drive file details
262 ```
263
264 ```python Python maxLines=60 wordWrap
265 -from composio import Composio
265 import os
266
267 +from composio import Composio
268 +
269 composio = Composio()
270
271 # Upload a local file to Google Drive
@@ -316,7 +317,7 @@ result = composio.tools.execute(
317 )
318
319 # Result includes local file path
319 -print(result.data["file"]["uri"]) # "/path/to/downloaded/file.pdf"
320 +print(result.data["file"]) # "/path/to/downloaded/file.pdf"
321 ```
322 </CodeGroup>
323
fern/pages/src/tool-calling/fetching-tools.mdx
+4 -4
@@ -58,7 +58,7 @@ const tools = await composio.tools.get(userId, {
58 tools = composio.tools.get(
59 user_id,
60 toolkits=["GITHUB"],
61 - limit=5, // Returns the top 5 important tools from the toolkit
61 + limit=5, # Returns the top 5 important tools from the toolkit
62 )
63 ```
64 </CodeGroup>
@@ -88,7 +88,7 @@ const tools = await composio.tools.get(userId, {
88 tools = composio.tools.get(
89 user_id,
90 toolkits=["GITHUB"],
91 - scopes=["repo",], // Only get tools requiring these scopes
91 + scopes=["repo"], # Only get tools requiring these scopes
92 limit=10
93 )
94 ```
@@ -173,8 +173,8 @@ tools = composio.tools.get(
173 tools = composio.tools.get(
174 user_id,
175 search="repository issues",
176 - toolkits=["GITHUB"], // Optional: limit search to specific toolkit
177 - limit=5 // Optional: limit number of results
176 + toolkits=["GITHUB"], # Optional: limit search to specific toolkit
177 + limit=5 # Optional: limit number of results
178 )
179 ```
180 </CodeGroup>