get_run
Retrieve a specific test run from QASE test management platform using project code and run ID to access test execution details.
Instructions
Get a specific test run
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| include | No |
Implementation Reference
- src/index.ts:384-387 (handler)The handler function for the 'get_run' tool in the CallToolRequestSchema. It parses the input arguments using GetRunSchema and delegates to the getRun helper function.
.with({ name: 'get_run' }, ({ arguments: args }) => { const { code, id, include } = GetRunSchema.parse(args); return getRun(code, id, include); }) - src/operations/runs.ts:19-23 (schema)Zod schema defining the input parameters for the 'get_run' tool: project code, run ID, and optional include flag.
export const GetRunSchema = z.object({ code: z.string(), id: z.number(), include: z.enum(['cases']).optional(), }); - src/index.ts:196-199 (registration)Registration of the 'get_run' tool in the ListToolsRequestSchema response, specifying name, description, and input schema.
name: 'get_run', description: 'Get a specific test run', inputSchema: zodToJsonSchema(GetRunSchema), }, - src/operations/runs.ts:30-30 (helper)Helper function that wraps the client.runs.getRun API call with pipe and toResult utility for handling the actual data fetching.
export const getRun = pipe(client.runs.getRun.bind(client.runs), toResult);