get_application_logs
Retrieve application logs from Coolify self-hosted PaaS to monitor deployments, troubleshoot issues, and track performance by specifying the application UUID and desired line count.
Instructions
Get application logs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| lines | No | Number of lines (default: 100) |
Implementation Reference
- src/tools/handlers.ts:253-258 (handler)The switch case in handleTool function that implements the get_application_logs tool by validating the uuid parameter, checking if the feature is available in the Coolify version, and fetching the logs from the API endpoint /applications/{uuid}/logs with optional lines parameter.case 'get_application_logs': requireParam(args, 'uuid'); if (!client.isFeatureAvailable('application_logs')) { return { error: 'Application logs not available in this Coolify version (requires beta.380+)' }; } return client.get(`/applications/${args.uuid}/logs`, { lines: args.lines || 100 });
- src/tools/definitions.ts:488-498 (schema)The tool definition object including name, description, and input schema specifying the required 'uuid' parameter and optional 'lines' for the get_application_logs tool.{ name: 'get_application_logs', description: 'Get application logs', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, lines: { type: 'number', description: 'Number of lines (default: 100)', default: 100 } }, required: ['uuid'] }
- src/index.ts:36-37 (registration)Registration of the listTools handler which returns all tool definitions including get_application_logs via getToolDefinitions().this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
- src/index.ts:57-58 (registration)The CallToolRequestSchema handler that dispatches to handleTool, which contains the specific implementation for get_application_logs.const result = await handleTool(this.client, name, args || {}); return {
- src/tools/definitions.ts:22-22 (helper)Inclusion in READ_ONLY_TOOLS array, ensuring the tool is available in read-only mode.'get_application_logs',