API KEY
FILES & DOCUMENTS
Let your agent convert files between CSV, XML, JSON, Excel, and PDF, upload source documents, and download results as the user who owns the API token.
import { ScalekitClient } from "@scalekit-sdk/node";
import { ChatOpenAI } from "@langchain/openai";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
const sk = new ScalekitClient(process.env.SCALEKIT_ENV_URL, process.env.SCALEKIT_CLIENT_ID, process.env.SCALEKIT_CLIENT_SECRET);
const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["conversiontoolsmcp"], toolNames: ["conversiontools_file_upload", "conversiontools_task_create", "conversiontools_task_get"] },
pageSize: 100,
});
const agent = createReactAgent({ llm: new ChatOpenAI({ model: "gpt-4o" }), tools });
await agent.invoke({ messages: [{ role: "user", content: "Convert the vendor XML feed to CSV" }] });import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";
const openai = new OpenAI();
const sk = new ScalekitClient(process.env.SCALEKIT_ENV_URL, process.env.SCALEKIT_CLIENT_ID, process.env.SCALEKIT_CLIENT_SECRET);
const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["conversiontoolsmcp"], toolNames: ["conversiontools_file_upload", "conversiontools_task_create", "conversiontools_task_get"] },
pageSize: 100,
});
const res = await openai.responses.create({
model: "gpt-4o",
input: "Convert this Excel sheet to CSV and return the link",
tools,
});import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";
const anthropic = new Anthropic();
const sk = new ScalekitClient(process.env.SCALEKIT_ENV_URL, process.env.SCALEKIT_CLIENT_ID, process.env.SCALEKIT_CLIENT_SECRET);
const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["conversiontoolsmcp"], toolNames: ["conversiontools_file_upload", "conversiontools_task_create", "conversiontools_task_get"] },
pageSize: 100,
});
const msg = await anthropic.messages.create({
model: "claude-sonnet-4-6",
max_tokens: 1024,
tools,
messages: [{ role: "user", content: "Convert the PDF invoice to text" }],
});import { LlmAgent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(process.env.SCALEKIT_ENV_URL, process.env.SCALEKIT_CLIENT_ID, process.env.SCALEKIT_CLIENT_SECRET);
const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["conversiontoolsmcp"], toolNames: ["conversiontools_file_upload", "conversiontools_task_create", "conversiontools_task_get"] },
pageSize: 100,
});
const agent = new LlmAgent({ name: "conversiontools_agent", model: "gemini-2.0-flash", tools });
await agent.run("Convert the JSON export to CSV");// shared token
convert → service_key
// scalekit
convert → user_abc ✓