Skip to content
Proud to collaborate with Microsoft for Startups

agents.session-fetch-attachments ​

Read-only: resolve StorageObject attachments for an agent session into a metadata manifest; presigned URLs are redacted from workflow state

Resolve attachment StorageObjects for an agent session into a metadata manifest.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-agents
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
session_uuidstringYes——
expires_sintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
itemslistNo——
failure_reasonstringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——
organization_uuidjsonNo——
session_uuidjsonNo——
expires_sjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
fetchedSUCCESSSession attachments fetcheditems, session_uuid, organization_uuid
failedFAILURESession attachments fetched failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_SESSION_NOT_FOUNDAgent session {session_uuid} was not found in the organization
AGENTS_CONFIG_NOT_FOUNDAgent configuration {agent_config_uuid} was not found in the organization
AGENTS_RUNNER_GROUP_NOT_FOUNDRunner group {runner_group_uuid} was not found in the organization
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:
AGENTS_PROVIDER_FAILEDUpstream provider or runner call failed:
AGENTS_MCP_CALL_FAILEDMCP tool call failed for {tool_name}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.session-fetch-attachments",
  "initial_data": {
    "organization_uuid": "value",
    "session_uuid": "value"
  }
}