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.

docs: update get tools references

angrybaybladedbdc8af8917e
diff --git a/fern/pages/src/tool-calling/executing-tools.mdx b/fern/pages/src/tool-calling/executing-tools.mdx
index 6de0330f1..f6f98a6fb 100644
--- a/fern/pages/src/tool-calling/executing-tools.mdx
+++ b/fern/pages/src/tool-calling/executing-tools.mdx
@@ -262,9 +262,10 @@ console.log(result.data); // Contains Google Drive file details
```
```python Python maxLines=60 wordWrap
-from composio import Composio
import os
+from composio import Composio
+
composio = Composio()
# Upload a local file to Google Drive
@@ -316,7 +317,7 @@ result = composio.tools.execute(
)
# Result includes local file path
-print(result.data["file"]["uri"]) # "/path/to/downloaded/file.pdf"
+print(result.data["file"]) # "/path/to/downloaded/file.pdf"
```
</CodeGroup>
diff --git a/fern/pages/src/tool-calling/fetching-tools.mdx b/fern/pages/src/tool-calling/fetching-tools.mdx
index b4502e609..e04ec5825 100644
--- a/fern/pages/src/tool-calling/fetching-tools.mdx
+++ b/fern/pages/src/tool-calling/fetching-tools.mdx
@@ -58,7 +58,7 @@ const tools = await composio.tools.get(userId, {
tools = composio.tools.get(
user_id,
toolkits=["GITHUB"],
- limit=5, // Returns the top 5 important tools from the toolkit
+ limit=5, # Returns the top 5 important tools from the toolkit
)
```
</CodeGroup>
@@ -88,7 +88,7 @@ const tools = await composio.tools.get(userId, {
tools = composio.tools.get(
user_id,
toolkits=["GITHUB"],
- scopes=["repo",], // Only get tools requiring these scopes
+ scopes=["repo"], # Only get tools requiring these scopes
limit=10
)
```
@@ -173,8 +173,8 @@ tools = composio.tools.get(
tools = composio.tools.get(
user_id,
search="repository issues",
- toolkits=["GITHUB"], // Optional: limit search to specific toolkit
- limit=5 // Optional: limit number of results
+ toolkits=["GITHUB"], # Optional: limit search to specific toolkit
+ limit=5 # Optional: limit number of results
)
```
</CodeGroup>