Skip to main content

Overview

You can run Jinba Flows using the Jinba Flow tool. This tool allows you to execute flows that have been published on Jinba within another flow. Jinba tools also let you manage files in Jinba storage and read/write records in Jinba tables.

Key Features

  • JINBA_FLOW_RUN
    • This tool allows you to run Jinba Flows by providing the flow ID and any necessary arguments.
  • JINBA_FILE_UPLOAD / JINBA_FILE_GET / JINBA_FILE_SEARCH / JINBA_FILE_DELETE
    • Upload, retrieve, search, and delete files in Jinba storage.
  • JINBA_TABLE_ADD_RECORD / JINBA_TABLE_GET_RECORDS / JINBA_TABLE_UPDATE_RECORD
    • Insert, read, and update records in Jinba tables.

Authentication

JINBA_FLOW_RUN requires no tool configuration. It runs a published flow in the same workspace: authentication uses the workspace API key (secrets.JINBAFLOW_WS_API_KEY), which is handled automatically on the server, and the API base URL is resolved from the server environment. Make sure the target flow is published before running it. Note: Treat API keys as sensitive information and never commit them to public repositories.

Example: Run Other Jinba Flows

File Tools

The file tools authenticate with a Jinba Flow Workspace API Token via the token config, which defaults to {{ secrets.JINBAFLOW_WS_API_KEY }} — you usually do not need to set it explicitly.

JINBA_FILE_UPLOAD

Upload a file to Jinba storage. Input: Output: File metadata including id, name, size, extension, mimeType, createdAt, updatedAt, workspaceId, userId, and signedUrl.

JINBA_FILE_GET

Retrieve a file’s metadata and a signed URL by file ID. Input:
  • fileId (string, required): The ID of the file to retrieve
Output: Same file metadata fields as JINBA_FILE_UPLOAD, including signedUrl. Search files in Jinba storage. Input: Output: items (array of file metadata) and nextCursor for pagination.

JINBA_FILE_DELETE

Delete a file from Jinba storage. Input:
  • fileId (string, required): The ID of the file to delete
Output: id and success.

Example: Upload and Retrieve a File

Table Tools

The table tools are workspace-scoped: the workspace’s API key is injected automatically, so no config is required.

JINBA_TABLE_ADD_RECORD

Insert a record into a Jinba table. Input: Output: result.recordId — the ID of the newly inserted record.

JINBA_TABLE_GET_RECORDS

Read records from a Jinba table. Input: Output: result with items (records as { __id, __created_at, __updated_at, __version, <columnName>: <value>, ... }), total, limit, and offset. NUMBER columns are serialized as strings to preserve precision — coerce with Number(value) downstream if you need numeric arithmetic.

JINBA_TABLE_UPDATE_RECORD

Update a record in a Jinba table. Input: Output: result.recordId.

Example: Add and Update Table Records