Databricks · Arazzo Workflow

Databricks Fetch Latest Completed Run Output for a Job

Version 1.0.0

Find a job's most recent completed run and retrieve its output.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceAnalyticsApache SparkBig DataCleanroomsCloud ComputingDataData AnalyticsData EngineeringData GovernanceDelta LakeDelta SharingETLIdentity ManagementLakehouseMachine-LearningMLflowModel ServingSecuritySQLUnity CatalogVector SearchVisualizeArazzoWorkflows

Provider

databricks

Workflows

latest-run-output
Get the output of a job's most recent completed run.
Lists completed runs for the job ordered most-recent-first, then fetches the output of the newest run when one exists.
2 steps inputs: job_id outputs: latestRunId, notebookResult
1
listCompletedRuns
List completed runs for the job, most recent first, and capture the newest run_id.
2
getRunOutput
Retrieve the output of the latest completed run, exposing the notebook result and any error.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Databricks Fetch Latest Completed Run Output for a Job
  summary: Find a job's most recent completed run and retrieve its output.
  description: >-
    Retrieves the result of a Databricks job's latest execution by listing the
    job's completed runs (most recent first), selecting the newest run, and
    fetching that run's output including the notebook exit value or error trace.
    The run_id from the first completed run feeds the output fetch. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: jobsApi
  url: ../openapi/databricks-jobs-api-openapi.yml
  type: openapi
workflows:
- workflowId: latest-run-output
  summary: Get the output of a job's most recent completed run.
  description: >-
    Lists completed runs for the job ordered most-recent-first, then fetches the
    output of the newest run when one exists.
  inputs:
    type: object
    required:
    - job_id
    properties:
      job_id:
        type: integer
        description: The job whose latest completed run output is wanted.
  steps:
  - stepId: listCompletedRuns
    description: >-
      List completed runs for the job, most recent first, and capture the
      newest run_id.
    operationId: listJobRuns
    parameters:
    - name: job_id
      in: query
      value: $inputs.job_id
    - name: completed_only
      in: query
      value: true
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestRunId: $response.body#/runs/0/run_id
    onSuccess:
    - name: hasRun
      type: goto
      stepId: getRunOutput
      criteria:
      - context: $response.body
        condition: $.runs.length > 0
        type: jsonpath
  - stepId: getRunOutput
    description: >-
      Retrieve the output of the latest completed run, exposing the notebook
      result and any error.
    operationId: getJobRunOutput
    parameters:
    - name: run_id
      in: query
      value: $steps.listCompletedRuns.outputs.latestRunId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      notebookResult: $response.body#/notebook_output/result
      error: $response.body#/error
  outputs:
    latestRunId: $steps.listCompletedRuns.outputs.latestRunId
    notebookResult: $steps.getRunOutput.outputs.notebookResult

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/databricks-latest-run-output-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.