Prefect · Capability
Prefect Cloud API — Download
Prefect Cloud API — Download. 3 operations. Lead operation: Download Flow Run Logs. Self-contained Naftiko capability covering one Prefect business surface.
What You Can Do
GET
Downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsiddownloadlogscsvget
— Download Flow Run Logs
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/download-logs-csv
GET
Getflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsget
— Get Flow Run Logs
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/logs
GET
Downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsdownloadget
— Download Flow Run Logs
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/logs/download
MCP Tools
download-flow-run-logs
Download Flow Run Logs
read-only
idempotent
get-flow-run-logs
Get Flow Run Logs
read-only
idempotent
download-flow-run-logs-2
Download Flow Run Logs
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Prefect Cloud API — Download
description: 'Prefect Cloud API — Download. 3 operations. Lead operation: Download Flow Run Logs. Self-contained Naftiko
capability covering one Prefect business surface.'
tags:
- Prefect
- Download
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
PREFECT_API_KEY: PREFECT_API_KEY
capability:
consumes:
- type: http
namespace: prefect-download
baseUri: ''
description: Prefect Cloud API — Download business capability. Self-contained, no shared references.
resources:
- name: api-accounts-account_id-workspaces-workspace_id-flow_runs-id-download-logs-csv
path: /api/accounts/{account_id}/workspaces/{workspace_id}/flow_runs/{id}/download-logs-csv
operations:
- name: downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsiddownloadlogscsvget
method: GET
description: Download Flow Run Logs
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: account_id
in: path
type: string
required: true
- name: workspace_id
in: path
type: string
required: true
- name: id
in: path
type: string
description: The flow run id
required: true
- name: api-accounts-account_id-workspaces-workspace_id-flow_runs-id-logs
path: /api/accounts/{account_id}/workspaces/{workspace_id}/flow_runs/{id}/logs
operations:
- name: getflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsget
method: GET
description: Get Flow Run Logs
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: account_id
in: path
type: string
required: true
- name: workspace_id
in: path
type: string
required: true
- name: id
in: path
type: string
required: true
- name: level_ge
in: query
type: string
- name: level_le
in: query
type: string
- name: offset
in: query
type: integer
- name: sort
in: query
type: string
- name: since
in: query
type: string
description: Only include logs with a timestamp at or after this time
- name: until
in: query
type: string
description: Only include logs with a timestamp at or before this time
- name: task_runs
in: query
type: string
description: Comma-separated list of task run IDs to filter by
- name: task_runs_is_null
in: query
type: string
description: If true, only include logs without a task run ID
- name: loggers
in: query
type: string
description: Comma-separated list of logger names to filter by
- name: text_query
in: query
type: string
description: Text search query string
- name: limit
in: query
type: integer
description: Defaults to PREFECT_ORION_API_DEFAULT_LIMIT if not provided.
- name: if-none-match
in: header
type: string
- name: api-accounts-account_id-workspaces-workspace_id-flow_runs-id-logs-download
path: /api/accounts/{account_id}/workspaces/{workspace_id}/flow_runs/{id}/logs/download
operations:
- name: downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsdownloadget
method: GET
description: Download Flow Run Logs
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: account_id
in: path
type: string
required: true
- name: workspace_id
in: path
type: string
required: true
- name: id
in: path
type: string
description: The flow run id
required: true
exposes:
- type: rest
namespace: prefect-download-rest
port: 8080
description: REST adapter for Prefect Cloud API — Download. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/download-logs-csv
name: api-accounts-account-id-workspaces-workspace-id-flow-runs-id-download-logs-csv
description: REST surface for api-accounts-account_id-workspaces-workspace_id-flow_runs-id-download-logs-csv.
operations:
- method: GET
name: downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsiddownloadlogscsvget
description: Download Flow Run Logs
call: prefect-download.downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsiddownloadlogscsvget
with:
account_id: rest.account_id
workspace_id: rest.workspace_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/logs
name: api-accounts-account-id-workspaces-workspace-id-flow-runs-id-logs
description: REST surface for api-accounts-account_id-workspaces-workspace_id-flow_runs-id-logs.
operations:
- method: GET
name: getflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsget
description: Get Flow Run Logs
call: prefect-download.getflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsget
with:
account_id: rest.account_id
workspace_id: rest.workspace_id
id: rest.id
level_ge: rest.level_ge
level_le: rest.level_le
offset: rest.offset
sort: rest.sort
since: rest.since
until: rest.until
task_runs: rest.task_runs
task_runs_is_null: rest.task_runs_is_null
loggers: rest.loggers
text_query: rest.text_query
limit: rest.limit
if-none-match: rest.if-none-match
outputParameters:
- type: object
mapping: $.
- path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/flow-runs/{id}/logs/download
name: api-accounts-account-id-workspaces-workspace-id-flow-runs-id-logs-download
description: REST surface for api-accounts-account_id-workspaces-workspace_id-flow_runs-id-logs-download.
operations:
- method: GET
name: downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsdownloadget
description: Download Flow Run Logs
call: prefect-download.downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsdownloadget
with:
account_id: rest.account_id
workspace_id: rest.workspace_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: prefect-download-mcp
port: 9090
transport: http
description: MCP adapter for Prefect Cloud API — Download. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: download-flow-run-logs
description: Download Flow Run Logs
hints:
readOnly: true
destructive: false
idempotent: true
call: prefect-download.downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsiddownloadlogscsvget
with:
account_id: tools.account_id
workspace_id: tools.workspace_id
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: get-flow-run-logs
description: Get Flow Run Logs
hints:
readOnly: true
destructive: false
idempotent: true
call: prefect-download.getflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsget
with:
account_id: tools.account_id
workspace_id: tools.workspace_id
id: tools.id
level_ge: tools.level_ge
level_le: tools.level_le
offset: tools.offset
sort: tools.sort
since: tools.since
until: tools.until
task_runs: tools.task_runs
task_runs_is_null: tools.task_runs_is_null
loggers: tools.loggers
text_query: tools.text_query
limit: tools.limit
if-none-match: tools.if-none-match
outputParameters:
- type: object
mapping: $.
- name: download-flow-run-logs-2
description: Download Flow Run Logs
hints:
readOnly: true
destructive: false
idempotent: true
call: prefect-download.downloadflowrunlogsapiaccountsaccountidworkspacesworkspaceidflowrunsidlogsdownloadget
with:
account_id: tools.account_id
workspace_id: tools.workspace_id
id: tools.id
outputParameters:
- type: object
mapping: $.