New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsCore & Utilities
Tool

Logs Tools

Query, fetch, and inspect workflow execution logs in the current workspace

The Logs provider lets a workflow read its own platform's execution history: search workflow run logs across the current workspace, fetch a single log entry by id, or load full execution details with the per-block state snapshot. Use these tools to build monitoring, alerting, auditing, or self-debugging workflows that react to past runs.

Overview

PropertyValue
Providerlogs
Categoryblocks
Authnone (internal /api/logs endpoint; scoped by the workspace in execution context)

Operations

OperationTool IDDescription
Query Logslogs_queryQuery workflow execution logs in the current workspace with filters and pagination.
Get Log by IDlogs_getFetch a single workflow execution log entry by its log ID.
Get Execution Detailslogs_get_executionFetch full execution details for a workflow run, including the per-block state snapshot.

Configuration

logs_query

ParameterTypeRequiredDescription
workflowIdsstringNoComma-separated workflow IDs to filter by.
executionIdstringNoFilter logs to a single execution ID.
levelstringNoLog level filter. One of all, info, error, running, pending (all is treated as no filter).
triggersstringNoComma-separated triggers to filter by: api, webhook, schedule, manual, chat.
limitnumberNoMax logs to return (default 100, max 200).
cursorstringNoOpaque pagination cursor returned by a previous query (nextCursor).
sortBystringNoSort field: date (default), duration, cost, status.
sortOrderstringNoSort order: desc (default) or asc.
startDatestringNoISO 8601 timestamp; only logs at or after this time.
endDatestringNoISO 8601 timestamp; only logs at or before this time.
searchstringNoFree-text search across log fields.

The workspace is resolved from the execution context (_context.workspaceId) automatically — it is not a user-facing parameter. The tool throws workspaceId is required in execution context when it is missing.

logs_get

ParameterTypeRequiredDescription
idstringYesLog entry ID to fetch.

The workspace is resolved from the execution context (_context.workspaceId) automatically.

logs_get_execution

ParameterTypeRequiredDescription
executionIdstringYesExecution ID returned by a workflow run.

No additional parameters or secrets are required.

Outputs

logs_query

  • logs (array) — Array of workflow execution log entries.
  • nextCursor (string) — Pagination cursor for the next page; null when no more results.

logs_get

  • log (json) — Workflow execution log entry.

logs_get_execution

  • executionId (string) — Execution ID.
  • workflowId (string) — Workflow ID this execution belongs to.
  • workflowState (json) — Per-block state snapshot for the execution.
  • executionMetadata (json) — Trigger, timestamps, totalDurationMs, and cost for the run.

YAML Example

logs_1:
  type: logs
  name: "Logs"
  inputs:
    operation: "query"
    level: "error"
    triggers: "api,schedule"
    limit: 50
    sortBy: "date"
    sortOrder: "desc"
  connections:
    outgoing:
      - target: next-block-id

Tips

  • No API key or OAuth is needed — these tools call the internal /api/logs endpoint and are automatically scoped to the workspace running the workflow via the execution context.
  • Page through large result sets by feeding the nextCursor from a logs_query response back in as the cursor parameter on the next call; stop when nextCursor is null.
  • Set level to error and triggers to the relevant entry points to build lightweight self-monitoring or alerting workflows that flag failed runs.
  • Use logs_query to discover an executionId, then chain logs_get_execution to pull the full per-block workflowState snapshot for deeper debugging or auditing.