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.

add more stuff

sjd9021504ad887c0f3
diff --git a/fern/pages/src/changelog/12-09-25.md b/fern/pages/src/changelog/12-09-25.md
index e933ce3fe..b8633aa33 100644
--- a/fern/pages/src/changelog/12-09-25.md
+++ b/fern/pages/src/changelog/12-09-25.md
@@ -99,3 +99,97 @@ For the exact field mapping per toolkit, open `platform.composio.dev` → Toolki
- Breaking change for consumers on the `latest` version who post-process the old nested `response_data` shape: outputs are now flattened and explicitly typed.
- New and modified fields include richer descriptions and examples; some legacy placeholders were removed.
- Re-fetch schemas for your tool/version to see the typed definitions. Use the toolkit view in `platform.composio.dev` for authoritative field details.
+
+## Schema Diff Snippets
+Quick scripts to compare input/output schema changes between tool versions. Fill in `TOOL_SLUG`, `VERSION_OLD`, `VERSION_NEW`, and `API_KEY`, then run locally to see unified diffs.
+
+**Python:**
+```python
+import json, requests
+from difflib import unified_diff
+
+TOOL_SLUG = "" # required
+VERSION_OLD = "YYYYMMDD_NN"
+VERSION_NEW = "YYYYMMDD_NN"
+API_KEY = "your-api-key"
+
+def fetch(version):
+ r = requests.get(
+ f"https://backend.composio.dev/api/v3/tools/{TOOL_SLUG}",
+ params={"version": version},
+ headers={"x-api-key": API_KEY},
+ )
+ r.raise_for_status()
+ return r.json()
+
+old, new = fetch(VERSION_OLD), fetch(VERSION_NEW)
+for label, a, b in [
+ ("INPUT", old.get("input_parameters", {}), new.get("input_parameters", {})),
+ ("OUTPUT", old.get("output_parameters", {}), new.get("output_parameters", {})),
+]:
+ print(f"\n{label} DIFF\n" + "=" * 20)
+ diff = unified_diff(
+ json.dumps(a, indent=2, sort_keys=True).splitlines(),
+ json.dumps(b, indent=2, sort_keys=True).splitlines(),
+ lineterm="",
+ )
+ print("\n".join(diff) or "No changes")
+```
+
+**TypeScript:**
+```typescript
+import { diffLines } from "diff";
+
+const TOOL_SLUG = ""; // required
+const VERSION_OLD = "YYYYMMDD_NN";
+const VERSION_NEW = "YYYYMMDD_NN";
+const API_KEY = "your-api-key";
+
+async function fetchTool(version: string) {
+ const res = await fetch(
+ `https://backend.composio.dev/api/v3/tools/${TOOL_SLUG}?version=${version}`,
+ { headers: { "x-api-key": API_KEY } }
+ );
+ if (!res.ok) throw new Error(await res.text());
+ return res.json();
+}
+
+function printDiff(label: string, oldText: string, newText: string) {
+ const diff = diffLines(oldText, newText);
+ console.log(`\n${label} DIFF\n${"=".repeat(20)}`);
+ if (diff.length === 1 && !diff[0].added && !diff[0].removed) {
+ console.log("No changes");
+ return;
+ }
+ diff.forEach((part) =>
+ part.value
+ .split("\n")
+ .filter(Boolean)
+ .forEach((line) =>
+ console.log(part.added ? `+ ${line}` : part.removed ? `- ${line}` : ` ${line}`)
+ )
+ );
+}
+
+async function main() {
+ const [oldTool, newTool] = await Promise.all([
+ fetchTool(VERSION_OLD),
+ fetchTool(VERSION_NEW),
+ ]);
+ printDiff(
+ "INPUT",
+ JSON.stringify(oldTool.input_parameters || {}, null, 2),
+ JSON.stringify(newTool.input_parameters || {}, null, 2)
+ );
+ printDiff(
+ "OUTPUT",
+ JSON.stringify(oldTool.output_parameters || {}, null, 2),
+ JSON.stringify(newTool.output_parameters || {}, null, 2)
+ );
+}
+
+main().catch((e) => {
+ console.error(e.message);
+ process.exit(1);
+});
+```