create_application_env
Add environment variables to applications in Coolify PaaS for configuration management and deployment control.
Instructions
Create an environment variable for an application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| key | Yes | Environment variable key | |
| value | No | Environment variable value | |
| is_preview | No | Use in preview deployments | |
| is_literal | No | Is literal value | |
| is_multiline | No | Is multiline value |
Implementation Reference
- src/tools/handlers.ts:272-275 (handler)The handler logic for the 'create_application_env' tool. It validates required parameters 'uuid' and 'key', then sends a POST request to the Coolify API endpoint `/applications/{uuid}/envs` with the provided arguments.case 'create_application_env': requireParam(args, 'uuid'); requireParam(args, 'key'); return client.post(`/applications/${args.uuid}/envs`, args);
- src/tools/definitions.ts:880-894 (schema)The tool definition including name, description, and input schema for validation of parameters like uuid, key, value, etc.name: 'create_application_env', description: 'Create an environment variable for an application', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, key: { type: 'string', description: 'Environment variable key' }, value: { type: 'string', description: 'Environment variable value' }, is_preview: { type: 'boolean', description: 'Use in preview deployments', default: false }, is_literal: { type: 'boolean', description: 'Is literal value', default: false }, is_multiline: { type: 'boolean', description: 'Is multiline value', default: false } }, required: ['uuid', 'key'] } },
- src/tools/definitions.ts:1209-1210 (registration)The tool definitions are exported here, registering all tools including 'create_application_env' via the allToolDefinitions array and getToolDefinitions function.export const toolDefinitions = getToolDefinitions();