import * as appStore from "../../../../apps/app-store.js"; import { executeAppRefresh } from "../../../../tools/apps/executors.js"; import { missingAppIdError, resolveAppId, } from "../../../../tools/apps/resolve-app-id.js"; import type { ToolContext, ToolExecutionResult, } from "../../../../tools/types.js"; export async function run( input: Record, context: ToolContext, ): Promise { const appId = resolveAppId(input, context.conversationId); if (!appId) { return missingAppIdError(); } return executeAppRefresh({ app_id: appId }, appStore); }