Execute Dokploy Workflow
executeRun JavaScript code against the Dokploy API or use guided workflows to deploy applications with target resolution, preview/apply selection, and rollout options.
Instructions
Run JavaScript code or a guided Dokploy workflow. In code mode, write bare JS against global dokploy and helpers without wrapping it in a function. In workflow mode, deploy-application can resolve a target, choose preview vs apply, collect bounded rollout options, and build a bounded plan when sampling and elicitation are enabled. When MCP tasks are enabled, execute also supports polling and cancellation for long-running runs. Known Dokploy IDs yield reusable dokploy://... resource links, and search helps discover procedures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | JavaScript code. `dokploy` and `helpers` are globals -- do NOT wrap in a function. Simple: `await dokploy.project.all()`. Multi-step: `const app = await dokploy.application.one({ applicationId: "abc" }); return app.name`. dokploy.<module>.<method>(params) calls the Dokploy API. helpers: sleep(ms), assert(cond, msg), pick(obj, keys), limit(arr, n). | |
| workflow | No | Optional guided workflow mode. Currently supports `deploy-application` with interactive target resolution, preview/apply selection, bounded rollout options, and an MCP-native plan when phase 3 sampling and elicitation are enabled. | |
| profile | No | Dokploy profile name. Required when DOKPLOY_PROFILES_JSON configures multiple profiles. |