API KEY
LOCATION DATA
API key location data for your agent: Mireye returns cited US elevation, flood, and terrain fields on that user's key.
import { ScalekitClient } from "@scalekit-sdk/node";
import { DynamicStructuredTool } from "@langchain/core/tools";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["mireye"], toolNames: [
"mireye_location_fetch",
"mireye_address_geocode",
"mireye_enrich_fields_list",
]}, pageSize: 100,
});
const tools = page.tools.map((t) => new DynamicStructuredTool({
name: t.name, description: t.description, schema: t.inputSchema,
func: (input) => sk.tools.executeTool({ identifier: "user_123", toolName: t.name, toolInput: input }),
});import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["mireye"], toolNames: [
"mireye_location_fetch",
"mireye_address_geocode",
"mireye_enrich_fields_list",
]}, pageSize: 100,
});
const result = await sk.tools.executeTool({
identifier: "user_123",
toolName: "mireye_location_fetch",
toolInput: { preset: "flood_risk", address: "350 5th Ave, New York, NY 10118" },
});import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["mireye"], toolNames: [
"mireye_location_fetch",
"mireye_address_geocode",
"mireye_enrich_fields_list",
]}, pageSize: 100,
});
// pass page.tools into the Anthropic tool runner
const result = await sk.tools.executeTool({
identifier: "user_123",
toolName: "mireye_address_geocode",
toolInput: { address: "350 5th Ave, New York, NY 10118" },
});import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["mireye"], toolNames: [
"mireye_location_fetch",
"mireye_address_geocode",
"mireye_enrich_fields_list",
]}, pageSize: 100,
});// shared key
audit → bot_acct
// scalekit
audit → user_abc ✓