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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"applicationToken": "<applicationToken>"
},
"name": "beagle_list_test_sessions"
}
}Input 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);