Returns a portable snapshot of the agent, suitable for import.
ID of the agent to export. Resolves to the latest revision.
A successful response.
AgentExport is a portable, dependency-free subset of an agent's configuration, shared by ExportAgent's response and ImportAgent's request. Carries no id, timestamps, or workspace- specific provenance - only fields meaningful to reconstruct the agent elsewhere.
The agent's name.
The agent's description.
The LLM model the agent uses.
The agent's system prompt.
The subscription tier the agent requires.
The name of the integration the agent is bound to, if any.
Additional configuration args for the bound integration.
JSON schema describing the agent's output.
The agent's runtime parameters.
The tools attached to the agent, in a portable representation.
AgentExportTool is the portable projection of a tool attached to an exported agent. It carries the full per-type body needed to reconstruct the internal agentic_tools.tools.v1.Tool on import (not just a type discriminator), minus OUTPUT_ONLY fields (id/created_at/updated_at/deleted_at/state/invalidated_at/warnings/errors/ agents_hub_tool). predefined/omitted params are preserved for fidelity.
Portability caveat: every tool body references its resource by an environment-specific id (workflow_id/revision_id, step_manifest_id, mcp tool_id, agent_id). Import recreates the tool pointing at that id, so a round-trip is lossless only within the same environment; cross-environment the referenced resource (workflow/step/mcp registration, or the sub-agent) must already exist in the destination or import fails. Builtin and internal tools cannot be recreated by import at all (the internal create-tool RPC's oneof only supports workflow/step/mcp/agent) - they are exported for visibility only; import surfaces the resulting internal error transparently, not silently.
The tool's name.
The tool's description.
The tool's schema.
The tool's tags.
Predefined parameter values configured for this tool on the agent.
AgentExportPredefinedParameter mirrors agentic_tools.PredefinedParameter. possible_values is a singular nested message, not a repeated string.
Names of parameters omitted from the tool on the agent.
The workflow's ID.
The workflow revision ID used by the tool, if pinned to a specific revision.
The step manifest ID.
The step's container image.
The name of the integration instance the step uses, if any.
The integration vendor.
The runner the step executes on.
The built-in tool's name.
AgentExportMcpTool mirrors the internal McpTool message. Note that integration_name/vendor are server-derived (OUTPUT_ONLY) on the internal message; export carries the real values for visibility, but import should not assume the internal service accepts caller-supplied values for them.
AgentExportMcpToolParameter mirrors the internal McpToolParameter message field-for-field.
AgentExportMcpVariableType mirrors the internal McpVariableType enum verbatim.
AgentExportMcpVariableType mirrors the internal McpVariableType enum verbatim.
The internal tool's name.
The ID of the sub-agent this tool references.
AgentAvailability holds which surfaces may offer an agent. Sent whole: an omitted field reads as false, so a partial message narrows the agent rather than leaving it unchanged.
Whether the agent may be offered in the workflow builder.
Whether the agent may be offered in Socrates.
Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.
You don't have permission to access this resource.