/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { transformationsGetTransformation } from "../../funcs/transformationsGetTransformation.js";
import { formatResult } from "../tools.js";
const args = {
    transformation: z.string(),
};
export const tool$transformationsGetTransformation = {
    name: "get-transformation-details",
    description: `Retrieves details of a specific transformation

Retrieves details for a named or unnamed transformation.
`,
    scopes: ["admin"],
    args,
    tool: async (client, args, ctx) => {
        const [result, apiCall] = await transformationsGetTransformation(client, args.transformation, { fetchOptions: { signal: ctx.signal } }).$inspect();
        if (!result.ok) {
            return {
                content: [{ type: "text", text: result.error.message }],
                isError: true,
            };
        }
        const value = result.value;
        return formatResult(value, apiCall);
    },
};
//# sourceMappingURL=transformationsGetTransformation.js.map