Skip to content

SDK Methods Reference

The CLI communicates with the Imbrace platform directly via @imbrace/sdk. This page maps each command group to the underlying SDK methods.

For the full SDK reference see SDK Overview.


Data Board — client.boards

CLI CommandSDK Method
data-board listclient.boards.list()
data-board createclient.boards.create(body)
data-board create-field <boardId>client.boards.createField(boardId, body)
data-board create-item <boardId>client.boards.createItem(boardId, body)
data-board list-itemsclient.boards.listItems(boardId, params) or client.boards.search(boardId, { q })
data-board update-item <boardId> <itemId>client.boards.updateItem(boardId, itemId, body)
data-board delete-item <boardId> <itemId>client.boards.deleteItem(boardId, itemId)
data-board export-csvclient.boards.exportCsv(boardId)

AI Agent — client.agent, client.chatAi, client.ai, client.boards

Most AI Agent commands use the client.agent resource (use-case management). Updates additionally use client.chatAi.

CLI CommandSDK Method
ai-agent listclient.agent.list()
ai-agent get <id>client.agent.get(id)
ai-agent createclient.agent.createUseCase(body)
ai-agent update <id>client.agent.updateUseCase(id, body) + client.chatAi.updateAiAgent(assistantId, body)
ai-agent delete <id>client.agent.delete(id)
ai-agent list-providersclient.ai.listProviders()
ai-agent list-models --provider-id <id>client.ai.listProviders() (filtered in-memory)
ai-agent list-foldersclient.boards.searchFolders(query)
ai-agent list-files --folder-id <id>client.boards.searchFiles({ folderId })

Document AI — client.documentAi

CLI CommandSDK Method
document-ai listclient.documentAi.listAgents(params)
document-ai get <id>client.documentAi.getAgent(id)
document-ai createclient.documentAi.createAgent(body)
document-ai update <id>client.documentAi.updateAgent(id, body)
document-ai delete <id>client.documentAi.deleteAgent(id)
document-ai processclient.documentAi.process(body)
document-ai suggest-schemaclient.documentAi.suggestSchema(body)

Orchestrator — client.agent, client.chatAi

Orchestrator is a special AI Agent with agent_type: "team_lead". Uses the same client.agent resource plus client.chatAi for patching sub-agent fields.

CLI CommandSDK Method
orchestrator listclient.agent.list()
orchestrator get <id>client.agent.get(id)
orchestrator createclient.agent.createUseCase(body) + client.chatAi.updateAiAgent(assistantId, body)
orchestrator delete <id>client.agent.delete(id)

Guard Rail — client.ai, client.account

CLI CommandSDK Method
guardrail listclient.ai.listGuardrails()
guardrail get <id>client.ai.getGuardrail(id)
guardrail createclient.ai.createGuardrail(body) (+ client.account.getAccount() to resolve org ID)
guardrail update <id>client.ai.updateGuardrail(id, body)
guardrail delete <id>client.ai.deleteGuardrail(id)

Workflow — client.workflows

CLI CommandSDK Method
workflow listclient.workflows.listFlows(params)
workflow get <id>client.workflows.getFlow(id)
workflow createclient.workflows.createFlow(body)
workflow delete <id>client.workflows.deleteFlow(id)
workflow move <id>client.workflows.applyFlowOperation(id, CHANGE_FOLDER)
workflow publish <id>client.workflows.applyFlowOperation(id, LOCK_AND_PUBLISH)
workflow enable <id>client.workflows.applyFlowOperation(id, CHANGE_STATUS enabled)
workflow disable <id>client.workflows.applyFlowOperation(id, CHANGE_STATUS disabled)
workflow run <id>client.workflows.triggerFlow(id, payload) (or triggerFlowSync with --sync)
workflow runsclient.workflows.listRuns()
workflow run-detail <runId>client.workflows.getRun(runId)
workflow node list <id>client.workflows.getFlow(id) (parsed)
workflow node add <id>client.workflows.applyFlowOperation(id, ADD_ACTION / UPDATE_TRIGGER)
workflow node update <id> <node>client.workflows.applyFlowOperation(id, UPDATE_ACTION)
workflow node delete <id> <node>client.workflows.applyFlowOperation(id, DELETE_ACTION)
workflow node add-raw <id>client.workflows.applyFlowOperation(id, body)
workflow piece listclient.workflows.listPieces()
workflow piece detail <pieceName>Direct HTTP: GET /activepieces/v1/pieces/{pieceName} via gatewayFetch()
workflow conn listclient.workflows.listConnections()
workflow conn get <connId>client.workflows.getConnection(connId)
workflow conn createclient.workflows.upsertConnection(body)
workflow conn delete <id>client.workflows.deleteConnection(id)
workflow folder listclient.workflows.listFolders()
workflow folder get <id>client.workflows.getFolder(id)
workflow folder createclient.workflows.createFolder(body)
workflow folder update <id>client.workflows.updateFolder(id, body)
workflow folder delete <id>client.workflows.deleteFolder(id)
workflow mcp listclient.workflows.listMcpServers()
workflow mcp get <id>client.workflows.getMcpServer(id)
workflow mcp createclient.workflows.createMcpServer(body)
workflow mcp delete <id>client.workflows.deleteMcpServer(id)
workflow mcp rotate-token <id>client.workflows.rotateMcpToken(id)