get_case
Retrieve a specific test case from the QASE test management platform by providing its project code and ID to access detailed information.
Instructions
Get a specific test case
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes |
Implementation Reference
- src/index.ts:346-349 (handler)The handler function for the 'get_case' tool. It matches tool calls named 'get_case', parses the input arguments using GetCaseSchema, and delegates to the getCase helper function..with({ name: 'get_case' }, ({ arguments: args }) => { const { code, id } = GetCaseSchema.parse(args); return getCase(code, id); })
- src/operations/cases.ts:39-42 (schema)Zod schema for validating input to the get_case tool: requires project code (string) and case ID (number). Used in both registration and handler.export const GetCaseSchema = z.object({ code: z.string(), id: z.number(), });
- src/index.ts:176-179 (registration)Tool registration in ListToolsRequestSchema handler, defining the tool's name, description, and input schema.name: 'get_case', description: 'Get a specific test case', inputSchema: zodToJsonSchema(GetCaseSchema), },
- src/operations/cases.ts:149-149 (helper)Core helper function implementing the logic: pipes the QaseIO client.cases.getCase method through toResult for result handling.export const getCase = pipe(client.cases.getCase.bind(client.cases), toResult);