Letta · Schema

AgentFileAttachment

Response model for agent file attachments showing file status in agent context

Artificial IntelligenceAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen-Source

Properties

Name Type Description
id string Unique identifier of the file-agent relationship
file_id string Unique identifier of the file
file_name string Name of the file
folder_id string Unique identifier of the folder/source
folder_name string Name of the folder/source
is_open boolean Whether the file is currently open in the agent's context
last_accessed_at object Timestamp of last access by the agent
visible_content object Portion of the file visible to the agent if open
start_line object Starting line number if file was opened with line range
end_line object Ending line number if file was opened with line range
View JSON Schema on GitHub

JSON Schema

letta-agentfileattachment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AgentFileAttachment",
  "title": "AgentFileAttachment",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Unique identifier of the file-agent relationship"
    },
    "file_id": {
      "type": "string",
      "title": "File Id",
      "description": "Unique identifier of the file"
    },
    "file_name": {
      "type": "string",
      "title": "File Name",
      "description": "Name of the file"
    },
    "folder_id": {
      "type": "string",
      "title": "Folder Id",
      "description": "Unique identifier of the folder/source"
    },
    "folder_name": {
      "type": "string",
      "title": "Folder Name",
      "description": "Name of the folder/source"
    },
    "is_open": {
      "type": "boolean",
      "title": "Is Open",
      "description": "Whether the file is currently open in the agent's context"
    },
    "last_accessed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Accessed At",
      "description": "Timestamp of last access by the agent"
    },
    "visible_content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Visible Content",
      "description": "Portion of the file visible to the agent if open"
    },
    "start_line": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Line",
      "description": "Starting line number if file was opened with line range"
    },
    "end_line": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Line",
      "description": "Ending line number if file was opened with line range"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "file_id",
    "file_name",
    "folder_id",
    "folder_name",
    "is_open"
  ],
  "description": "Response model for agent file attachments showing file status in agent context"
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/letta-agentfileattachment"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.