beagle_list_test_sessions
Retrieve all security test sessions for an application to monitor and manage penetration testing assessments.
Instructions
List all test sessions for an application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applicationToken | Yes | Application token | |
| count | No | Number of sessions to retrieve |
Implementation Reference
- src/index.ts:601-615 (handler)The handler method `listTestSessions` that executes the logic to retrieve test sessions by making an API request.
private async listTestSessions(args: any) { const endpoint = args.count ? `/test/sessions?application_token=${args.applicationToken}&count=${args.count}` : `/test/sessions?application_token=${args.applicationToken}`; const result = await this.makeRequest(endpoint); return { content: [ { type: "text", text: `Test sessions:\n${JSON.stringify(result, null, 2)}`, }, ], }; - src/index.ts:252-261 (schema)Definition of the `beagle_list_test_sessions` tool including its input schema.
name: "beagle_list_test_sessions", description: "List all test sessions for an application", inputSchema: { type: "object", properties: { applicationToken: { type: "string", description: "Application token" }, count: { type: "number", description: "Number of sessions to retrieve" }, }, required: ["applicationToken"], }, - src/index.ts:320-321 (registration)Registration of the `beagle_list_test_sessions` tool in the request handler switch statement.
case "beagle_list_test_sessions": return await this.listTestSessions(args);