Letta · Schema
FileAgentSchema
File-Agent relationship with human-readable ID for agent file
Artificial IntelligenceAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen-Source
Properties
| Name | Type | Description |
|---|---|---|
| agent_id | string | Unique identifier of the agent. |
| file_id | string | Unique identifier of the file. |
| source_id | string | Deprecated: Use `folder_id` field instead. Unique identifier of the source. |
| file_name | string | Name of the file. |
| is_open | boolean | True if the agent currently has the file open. |
| visible_content | object | Portion of the file the agent is focused on (may be large). |
| last_accessed_at | object | UTC timestamp of the agent's most recent access to this file. |
| start_line | object | Starting line number (1-indexed) when file was opened with line range. |
| end_line | object | Ending line number (exclusive) when file was opened with line range. |
| id | string | Human-readable identifier for this file-agent relationship in the file |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/FileAgentSchema",
"title": "FileAgentSchema",
"properties": {
"agent_id": {
"type": "string",
"title": "Agent Id",
"description": "Unique identifier of the agent."
},
"file_id": {
"type": "string",
"title": "File Id",
"description": "Unique identifier of the file."
},
"source_id": {
"type": "string",
"title": "Source Id",
"description": "Deprecated: Use `folder_id` field instead. Unique identifier of the source.",
"deprecated": true
},
"file_name": {
"type": "string",
"title": "File Name",
"description": "Name of the file."
},
"is_open": {
"type": "boolean",
"title": "Is Open",
"description": "True if the agent currently has the file open.",
"default": true
},
"visible_content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Visible Content",
"description": "Portion of the file the agent is focused on (may be large)."
},
"last_accessed_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "Last Accessed At",
"description": "UTC timestamp of the agent's most recent access to this file."
},
"start_line": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Start Line",
"description": "Starting line number (1-indexed) when file was opened with line range."
},
"end_line": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "End Line",
"description": "Ending line number (exclusive) when file was opened with line range."
},
"id": {
"type": "string",
"title": "Id",
"description": "Human-readable identifier for this file-agent relationship in the file"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"agent_id",
"file_id",
"source_id",
"file_name",
"id"
],
"description": "File-Agent relationship with human-readable ID for agent file"
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/letta-fileagentschema"
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.