code-tools
Installation
SKILL.md
ElevenLabs Code Tools
Generate paste-ready JS/TS for ElevenLabs code tools: custom logic that runs on ElevenLabs infrastructure, not a customer webhook.
Canonical runtime model
Your code is a single JavaScript/TypeScript module that exports one default async function. It receives a ctx object and returns the tool result (same downstream uses as a server tool response: agent, transcript, dynamic variables).
export default async (ctx) => {
const { city } = ctx.args;
return { message: `Hello from ${city}!` };
};
Helpers and top-level variables outside the default export are fine.