get_plans
Retrieve all test plans in a specific project using project code. Specify limit and offset for pagination.
Instructions
Get all test plans in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| limit | No | ||
| offset | No |
Implementation Reference
- src/index.ts:388-391 (handler)Handler for the 'get_plans' tool: parses input arguments using GetPlansSchema and calls the getPlans function..with({ name: 'get_plans' }, ({ arguments: args }) => { const { code, limit, offset } = GetPlansSchema.parse(args); return getPlans(code, limit, offset); })
- src/operations/plans.ts:5-9 (schema)Zod schema defining the input parameters for the get_plans tool: code (required), limit and offset (optional).export const GetPlansSchema = z.object({ code: z.string(), limit: z.number().optional(), offset: z.number().optional(), });
- src/index.ts:201-203 (registration)Registration of the 'get_plans' tool in the list of available tools, including name, description, and input schema.name: 'get_plans', description: 'Get all test plans in a project', inputSchema: zodToJsonSchema(GetPlansSchema),
- src/operations/plans.ts:31-34 (helper)Helper function getPlans that pipes the client.plans.getPlans call through toResult for handling.export const getPlans = pipe( client.plans.getPlans.bind(client.plans), toResult, );