Skip to content
Docs
GitHub

Export agent in Markdown format with YAML front matter

Preview

Configure agents, harnesses, capabilities, skills and channels. Manage keys, triggers and recorded changes.

Public APIEverruns Cloud and self-hosted Platform

GET/v1/agents/{agent_id}/export

See authentication for credentials and permissions.

agent_id
required
string

Agent name or ID

format
string

Markdown (default), json, yaml, toml, or zip.

Responses

200Portable agent definition (format selects text or ZIP)

Portable agent definition (format selects text or ZIP)

Media typeapplication/json

Authored values only: no organisation, agent, model, harness or channel IDs.

object
agents
Array<object> recursive
capabilities

Named capabilities, optionally with configuration; the host validates availability.

Array
One of:
string
channels

Named channel descriptions, upserted without removing omitted destination channels.

object
key
additional properties

Portable channel intent. Authentication and installation are host bindings. Channels default to disabled; enabled intent still requires host publication.

object
config

Declarative transport settings, excluding credentials and destination resource IDs.

enabled

Request an enabled draft; false by default. Publication remains a host operation.

boolean
type
required

Ingress transport type, such as ag_ui, public_chat, fcp or slack.

string
communication
One of:

How the agent talks: direct (its text is the reply) or explicit (its text is working notes; it talks through send_message). Omission means direct.

string
Allowed values: direct explicit
completion_check
One of:

When a finishing turn gets a completion check: off, unattended (sessions started by triggers and schedules) or always. Omission means unattended.

string
Allowed values: off unattended always
description

Optional description of the agent’s purpose.

string | null
display_name

Human-readable agent label. Defaults to the stable name at the host.

string | null
files

Starting files or package-relative sources. Sources retain their relative paths.

Array
One of:
string
harness

Named harness requirement. Omission uses the host’s default harness.

string | null
instructions

Authored instructions. Legacy system_prompt input is also accepted.

string
instructions_file

Package-relative instructions source. Folder loading defaults to instructions.md.

string | null
intro_markdown

Optional Markdown introduction shown before the conversation starts.

string | null
localizations

Locale-keyed display overlays; identifiers and execution instructions are unchanged.

object
key
additional properties

Display-only translations shared by portable agent files and platform resources. Addresses, tool identifiers and execution instructions never use these values.

object
description

Localized description (1–2000 characters when set).

string | null
display_name

Localized display name (1–255 characters when set).

string | null
max_iterations

Optional tool-loop iteration limit. Omission keeps the host default.

integer | null
max_output_tokens

Ceiling on output tokens per model response. Omission keeps the provider default.

integer | null format: int32
mcpServers

Named scoped MCP definitions. Credential placeholders require explicit host bindings.

object
key
additional properties

Session-, agent-, or harness-scoped remote MCP server configuration.

This intentionally mirrors the mcpServers object shape used by common MCP client config files while staying within Everruns’ current remote-HTTP-only support.

object
actsAs

Identity whose grant this attachment requests.

string
Allowed values: none service user user_or_service
args

Arguments passed to the stdio command.

Array<string>
auth_mode

Authentication mode used when executing tools from this scoped server.

string
Allowed values: none api_key oauth
command

Executable to spawn for a stdio transport server.

string | null
connectInChat

Whether a missing sign-in may pause the turn with an in-chat Connect card (ask, the default) or fails the call with a settings link (never).

string
Allowed values: ask never
deferred

Whether the server’s tools are listed only when the model asks for them through tool search (false, the default, lists them at turn start).

boolean
description

Searchable server context supplied by its attachment or catalog. It is metadata, not an instruction or a credential.

string | null
elicitation_policy

Which elicitation modes this server may use (url by default).

string
Allowed values: url url_and_form none
env

Environment variables set for the stdio command.

object
key
additional properties
string
headers

Additional HTTP headers sent on MCP requests (HTTP transport only).

object
key
additional properties
string
oauth_provider_id

Provider id used to resolve a user-scoped bearer token.

string | null
protocol_mode

Protocol-era adoption policy for the MCP client (auto negotiates).

string
Allowed values: auto 2025-03-26 2025-06-18 2026-07-28
tool_discovery

Whether to discover tool definitions live from this server.

boolean
tool_labels

Risk labels for this server’s tools, by the tool’s own name: read_only never asks for approval in the normal mode, changes always asks. They win over the tool’s annotations and over a catalog preset’s saved labels. Honored on harness, agent and person-owned servers; dropped from session-scoped servers.

object
key
additional properties

A person’s saved risk label for one MCP tool.

Decision (2026-10-10): a person’s label always wins over the tool’s own annotations, because a remote server describes itself and a person who owns the integration knows better. read_only also clears open_world, since tool approval treats an outward-reaching tool like a destructive one; without that a read-only MCP tool would still ask every time.

string
Allowed values: read_only changes
tool_timeout_ms

How long one tools/call to this server may take, in milliseconds. Unset means [MCP_TOOL_TIMEOUT_DEFAULT_MS] (60 s); accepted range is [MCP_TOOL_TIMEOUT_MIN_MS]..=[MCP_TOOL_TIMEOUT_MAX_MS]. timeout is accepted as an alias, matching common mcpServers config files.

integer | null format: int64
type

MCP transport type. Only remote HTTP is supported today.

string
Allowed values: http stdio
url

URL of the remote MCP server endpoint. Required for HTTP transport; empty/ignored for stdio.

string
use
One of:

Organization catalog preset that supplies transport and authentication policy.

string
members

Other agents, by name, that this agent can hand work to. Agents bundled under .agents/agents/ are found without listing them here; an explicit empty list turns that discovery off.

Array<string> | null
model
One of:

Provider and model names. Omission uses the host’s default model.

object
model
required

Provider-native model name, rather than a platform model ID.

string
provider
required

Stable provider name, such as openai or anthropic.

string
model_role

Organization model the agent follows instead of model, such as research for the host’s research model. Hosts without model roles use their default model.

string | null
name

Stable agent name used for destination lookup; resource IDs are not portable.

string
network_access
One of:

Optional outbound network policy enforced by the host.

object
allowed

Allowed host patterns. If non-empty, only matching URLs are permitted. An empty list means “no restriction from this layer” (inherit parent).

Array<string>
blocked

Blocked host patterns. Always denied, even if matched by allowed.

Array<string>
parallel_tool_calls

Whether independent tool calls may run concurrently. Omission keeps the host default.

boolean | null
sandbox_policy

Platform-specific Sandbox policy. Other hosts must explicitly bind or reject it rather than silently discarding execution requirements.

schema_version

Portable format version. Currently 1; omitted values default to 1.

integer format: int32
short_description

Optional short description for agent discovery surfaces.

string | null
skills

Package-relative skill folders including SKILL.md and supporting assets.

Array<string>
starters

Suggested opening messages in the platform’s starter format.

Array
tags

Discovery tags, compared as an unordered set.

Array<string>
tools

Tool schemas whose executable implementations must be bound by the host.

Array
One of:

Built-in tool - executed by the worker via ToolRegistry

object
category

Category for tool_search namespace grouping (from parent capability)

string | null
deferrable

Whether this tool’s schema can be deferred via tool_search

string
Allowed values: never automatic always
description
required

Tool description for LLM

string
display_name

Human-readable display name for UI rendering (e.g., “Get Current Time” for get_current_time)

string | null
full_parameters

Original full parameter schema saved by DeferSchemaHook before stripping. Serialized only when present so durable reason-to-act scheduling can preserve deferred schemas for tool_search in the act phase.

hints

Semantic hints describing the tool’s behavioral properties

object
capability_description

Declared capability description for source-aware tool discovery. Never populate this with system prompts, conversation state or secrets.

string | null
capability_id

Capability that contributed this tool definition.

Reporting uses this attribution only as metadata. It must never contain tool arguments, results, prompts, or any other sensitive payload.

string | null
capability_name

Human-readable capability name snapshot for reporting.

string | null
concurrency_class

Scheduling conflict key. Tool calls within the same act batch that share a non-empty concurrency_class are executed sequentially in arrival order; calls in different classes (or with no class) run concurrently.

Set this on tools that mutate shared session state so that, e.g., two file writes or two SQL mutations in one batch do not race. Read-only tools should leave this None so they always parallelize. See everruns-engine’s tool scheduler for how the act phase consumes it.

string | null
cpu_bound

Tool performs significant CPU-bound or otherwise non-yielding work in process (e.g. an in-process interpreter). When true, the act scheduler runs the call on its own task (tokio::spawn) so a long CPU burst does not starve the cooperative polling of I/O-bound tools in the same batch.

Distinct from long_running, which describes wall-clock time for I/O-bound work (those tools yield at await points and need no offload).

boolean | null
destructive

Tool may irreversibly destroy or delete data. Subset of non-readonly — a tool can be non-readonly (writes) without being destructive (e.g., create/update operations).

boolean | null
idempotent

Calling the tool repeatedly with the same arguments produces the same effect. Safe to retry on transient failures.

boolean | null
long_running

Tool may take significant time to complete (> ~5s typical). Useful for clients to show progress indicators and set timeouts.

boolean | null
metadata

Host-owned annotations that core does not interpret.

The typed hints above are the vocabulary core itself reasons about. This is the escape hatch for everything a host wants to carry alongside a tool — risk tiers for an approval UI, presentation hints, an embedder’s routing keys — without adding a field to core for each one. Core reads nothing here and no driver sends it to a provider; it travels with the definition so a consumer sees it at the point of decision (e.g. a PreToolUseHook gating on what the tool declared).

The schema belongs to whoever writes it. Never put credentials or other sensitive payload here: like the rest of the definition, it is persisted and surfaced to clients.

narration_noun

Entity noun for operation-based narration (e.g. “agent”, “harness”). When set, the narration system reads the operation argument and produces verb-based narration like “Created agent: Neon Cartographer” instead of the generic “Ran Manage Agents”.

string | null
open_world

Tool interacts with external entities beyond the local system (network calls, third-party APIs, cloud services).

boolean | null
persist_output

Tool output should be persisted to session VFS before truncation. When set, the tool_output_persistence capability (EVE-222, EVE-245) writes stdout to /outputs/{tool_call_id}.stdout and stderr to /outputs/{tool_call_id}.stderr, injecting full_output, total_lines, and output_files into the result.

boolean | null
readonly

Tool does not modify any state (read-only queries, lookups). When true: safe to call speculatively, result can be cached.

boolean | null
requires_secrets

Tool requires API keys, credentials, or other secrets to function. Useful for UI to show connection prompts and for LLMs to anticipate authentication failures.

boolean | null
side_effect_class
One of:

Replay-safety class used when recovering an unfinished tool call.

When the journal records a start but no completed result, Pure/Idempotent tools may be re-executed; AtMostOnce tools are settled as interrupted to avoid repeating an uncertain external effect.

None is treated conservatively as AtMostOnce.

string
Allowed values: Pure Idempotent AtMostOnce
stays_direct

Tool must stay a direct tool call and never runs from inside a shell script (shell_code_mode): it pauses or shapes the turn, or its result only makes sense to the model directly.

boolean | null
supports_background

Tool supports detached background execution via spawn_background. When true, the tool may be executed asynchronously outside the current foreground tool call and report status back later.

boolean | null
name
required

Tool name (used by LLM and for registry lookup)

string
parameters
required

JSON schema for tool parameters

policy

Tool policy (auto or requires_approval)

string
Allowed values: auto requires_approval client_side
type
required
string
Allowed values: builtin

Example

{
"communication": "direct",
"completion_check": "off",
"mcpServers": {
"additionalProperty": {
"actsAs": "none",
"auth_mode": "none",
"connectInChat": "ask",
"elicitation_policy": "url",
"protocol_mode": "auto",
"tool_labels": {
"additionalProperty": "read_only"
},
"type": "http",
"use": "catalog:linear"
}
},
"network_access": {
"allowed": [
"*.example.com",
"https://api.acme.com/"
],
"blocked": [
"169.254.169.254"
]
},
"tools": [
{
"deferrable": "never",
"hints": {
"side_effect_class": "Pure"
},
"policy": "auto",
"type": "builtin"
}
]
}
400Invalid agent ID

Invalid agent ID

404Agent not found

Agent not found

500Internal server error

Internal server error