Skip to main content

Installation

Requires Node.js 18+ and TypeScript 5.0+.

Client Configuration


Tool Execution

executeTool

Execute an MCP tool by its alias name.
Returns: Tool execution result. Throws: DatagenAuthError, DatagenToolError, DatagenHttpError

Custom Tool Deployment

deployCustomTool

Deploy a Python workflow as an API endpoint.
Returns: Object with deploymentUuid and deployment details. Throws: DatagenDeploymentError

updateCustomTool

Update an existing custom tool. Only provided fields are updated.

getCustomTool

listCustomTools


Custom Tool Execution

runCustomTool

Run synchronously (blocks until complete).

runCustomToolAsync

Run asynchronously (returns immediately).

checkRunStatus

getRun

waitForRun

Poll until an async run completes.

Secret Management

listSecrets

setSecret


Error Types