--- title: "TriggerClient: getRun() instance method" sidebarTitle: "getRun()" description: "The `getRun()` method gets the details for a given Run." --- ## Parameters The Run ID you want to get the details for If `true`, it returns the `params` and `output` of all tasks. ## Returns ```ts getRun example // jobs/myJobs.ts client.defineJob({ id: "my-job", ... }); // someFile.ts ... const runs = await client.getRuns("my-job"); if (runs.length === 0) { throw new Error("No runs found"); } const runDetail = await client.getRun(runs[0].id); console.log(runDetail.tasks.length); ... ```