Logs

lo

O bloco Logs dá aos agentes acesso programático ao histórico de execuções de workflows no workspace atual. Ele consulta os mesmos dados de runs exibidos na página Logs e pode obter o detalhe completo de execução de qualquer run individual.

Com o Logs, você pode:

  • Consultar histórico de runs: Filtrar runs por workflow, pasta, status, tipo de trigger, intervalo de datas, custo e duração, com ordenação e busca por texto livre
  • Obter detalhes de um run: Recuperar status, trigger, timing, custo e output final de um run específico pelo run ID
  • Inspecionar traces de execução: Obter os trace spans completos de um run para ver como ele executou passo a passo

No Zoen, o bloco Logs permite que seus agentes busquem e filtrem o histórico de execuções com os mesmos filtros da página Logs e, em seguida, aprofundem em um run específico para recuperar status, custo, duração, output final e trace spans completos. Assim, agentes podem monitorar outros workflows, auditar execuções passadas e obter detalhes de execução de forma programática como parte de um workflow maior.

Usage Instructions

Query workflow run logs in the current workspace with the same filters as the Logs page, returning matching run IDs. Fetch full details for a single run, including its trace spans.

Actions

logs_query_runs

Query workflow run logs in the current workspace with the full Logs-page filter set. Returns matching run IDs.

Input

ParameterTypeRequiredDescription
workflowIdsstringNoComma-separated workflow IDs to filter by
folderIdsstringNoComma-separated folder IDs to filter by (descendants included)
levelstringNoComma-separated statuses: 'info', 'error', 'running', 'pending', 'cancelled'. Omit for all.
triggersstringNoComma-separated trigger types (api, webhook, schedule, manual, chat, mcp, workflow, sim, …)
startDatestringNoISO 8601 timestamp; only runs at or after this time
endDatestringNoISO 8601 timestamp; only runs at or before this time
searchstringNoFree-text search across log fields
costOperatorstringNoCost comparison operator: '=', '>', '<', '>=', '<=', '!='
costValuenumberNoCost threshold in credits, compared using costOperator
durationOperatorstringNoDuration comparison operator: '=', '>', '<', '>=', '<=', '!='
durationValuenumberNoDuration threshold in milliseconds, compared using durationOperator
limitnumberNoMax run IDs to return (default 100, max 200)
sortBystringNoSort field: 'date' (default), 'duration', 'cost', 'status'
sortOrderstringNoSort order: 'desc' (default) or 'asc'

Output

ParameterTypeDescription
runIdsarrayIDs of the runs matching the filters

logs_get_run_details

Fetch details for a single workflow run by its run ID, including the full trace spans.

Input

ParameterTypeRequiredDescription
runIdstringYesThe run ID to fetch details for

Output

ParameterTypeDescription
runIdstringThe run ID
workflowIdstringWorkflow ID this run belongs to
workflowNamestringWorkflow name
statusstringRun status
triggerstringHow the run was triggered
startedAtstringRun start time (ISO 8601)
durationMsnumberRun duration in milliseconds
costnumberRun cost in credits
traceSpansarrayFull trace spans for the run
finalOutputjsonFinal output of the run

On this page