RuntimeListProfilerTraceFiles
List ABAP profiler trace files available in ADT runtime and get parsed JSON payload.
Instructions
[runtime] List ABAP profiler trace files available in ADT runtime. Returns parsed JSON payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for RuntimeListProfilerTraceFiles. It uses AdtRuntimeClient to get profiler trace files from ADT runtime and returns the parsed JSON payload.
export async function handleRuntimeListProfilerTraceFiles( context: HandlerContext, ) { const { connection, logger } = context; try { const runtimeClient = new AdtRuntimeClient(connection, logger); const response = await runtimeClient.getProfiler().list(); return return_response({ data: JSON.stringify( { success: true, status: response.status, payload: parseRuntimePayloadToJson(response.data), }, null, 2, ), status: response.status, statusText: response.statusText, headers: response.headers, config: response.config, }); } catch (error: any) { logger?.error('Error listing profiler trace files:', error); return return_error(error); } } - Tool definition including name, description, availability (onprem/cloud), and input schema (no required inputs).
export const TOOL_DEFINITION = { name: 'RuntimeListProfilerTraceFiles', available_in: ['onprem', 'cloud'] as const, description: '[runtime] List ABAP profiler trace files available in ADT runtime. Returns parsed JSON payload.', inputSchema: { type: 'object', properties: {}, required: [], }, } as const; - src/lib/handlers/groups/SystemHandlersGroup.ts:93-96 (registration)Import of the handler and tool definition from the handler file.
import { handleRuntimeListProfilerTraceFiles, TOOL_DEFINITION as RuntimeListProfilerTraceFiles_Tool, } from '../../../handlers/system/readonly/handleRuntimeListProfilerTraceFiles'; - src/lib/handlers/groups/SystemHandlersGroup.ts:137-140 (registration)Registration of RuntimeListProfilerTraceFiles tool in the SystemHandlersGroup with its tool definition and handler.
{ toolDefinition: RuntimeListProfilerTraceFiles_Tool, handler: () => handleRuntimeListProfilerTraceFiles(this.context), },