/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { powerPathLessonPlansUpdateLessonPlanItem } from "../../funcs/powerPathLessonPlansUpdateLessonPlanItem.js";
import * as operations from "../../models/operations/index.js";
import { formatResult } from "../tools.js";
const args = {
    request: operations.UpdateLessonPlanItemRequest$inboundSchema,
};
export const tool$powerPathLessonPlansUpdateLessonPlanItem = {
    name: "power-path-lesson-plans-update-lesson-plan-item",
    description: `Update a lesson plan item


    Updates a lesson plan item by its ID.

    While many parameters of a lesson plan item can be updated, 
    the main use case for this feature is to re-parent a lesson plan item.
    `,
    args,
    tool: async (client, args, ctx) => {
        const [result, apiCall] = await powerPathLessonPlansUpdateLessonPlanItem(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
        if (!result.ok) {
            return {
                content: [{ type: "text", text: result.error.message }],
                isError: true,
            };
        }
        return formatResult(void 0, apiCall);
    },
};
//# sourceMappingURL=powerPathLessonPlansUpdateLessonPlanItem.js.map