/** Run one tool through the installed Harness batch executor. */ export async function executeTool(ctx, {callId, name, arguments: args, ...options}) { const {results} = await ctx.tools.execute({ ...options, calls: [{type: 'tool-call', id: callId, name, arguments: JSON.stringify(args ?? {})}], }); return results[0].result; }