Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt

Use this file to discover all available pages before exploring further.

Commands for managing function executions and viewing execution logs.

function

Manage functions Usage
tailor-sdk function [command]
Commands
CommandDescription
function logsList or get function execution logs
When no subcommand is provided, defaults to logs.

function logs

List or get function execution logs. Usage
tailor-sdk function logs [options] [executionId]
Arguments
ArgumentDescriptionRequired
executionIdExecution ID (if provided, shows details with logs)No
Options
OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-
--profile <PROFILE>-pWorkspace profileNo-
Examples List all function executions:
tailor-sdk function logs
Get details for a specific execution:
tailor-sdk function logs <execution-id>
Get execution details as JSON:
tailor-sdk function logs <execution-id> --json
Output When listing executions (no execution ID):
[
  {
    "id": "exec-123",
    "scriptName": "myFunction",
    "status": "SUCCESS",
    "type": "STANDARD",
    "startedAt": "2024-03-01T10:00:00Z",
    "finishedAt": "2024-03-01T10:00:05Z"
  }
]
When getting execution details (with execution ID), the output includes:
  • id: Execution ID
  • scriptName: Name of the function that was executed
  • status: Execution status (SUCCESS, FAILED, RUNNING, etc.)
  • type: Execution type (STANDARD, JOB)
  • startedAt: When the execution started
  • finishedAt: When the execution finished
  • logs: Complete execution logs
  • result: Execution result (if available)
Execution Types
  • STANDARD: Regular function execution
  • JOB: Function executed as a job
  • UNSPECIFIED: Type not specified
Execution Statuses Function executions can have different statuses depending on their current state:
  • PENDING: Execution is queued
  • RUNNING: Execution is in progress
  • SUCCESS: Execution completed successfully
  • FAILED: Execution failed with an error

Build docs developers (and LLMs) love