Get an agent
Returns the specified agent: its metadata (name, description,
permissions, runtime, extras) plus the parsed
file tree (system prompt, tools, subagents, skills) at the
latest commit. Pass include=owner to resolve owner_id into
an owner object, and/or include=files to also receive the
raw file map.
Responses include system_prompt and instructions with the
same value; instructions is deprecated.
Authorizations
LangSmith API key (lsv2_...).
Path Parameters
Agent ID
Query Parameters
Comma-separated relations to hydrate: owner (resolve owner_id into an owner object) and/or files (raw file map). Omitted by default. The legacy include_files=true boolean is a deprecated alias for include=files.
owner, files Response
OK
The caller's access level on this agent.
READ, RUN, WRITE "WRITE"
"2026-01-15T09:30:00Z"
"Researches topics and drafts summaries."
Raw file map. Returned only when include_files=true.
"11111111-1111-1111-1111-111111111111"
Deprecated: use system_prompt. Echoed alongside system_prompt with
the same value for backwards compatibility.
True when the caller owns this agent.
true
"Research Assistant"
"7f8e9d0c-1b2a-3948-5766-8594a3b2c1d0"
Opaque identifier for the agent's current revision.
"rev_3f9a2b1c"
Subagents parsed from subagents/<name>/AGENTS.md + subagents/<name>/tools.json.
Agent system prompt parsed from AGENTS.md.
"You are a helpful research assistant."
Tool config parsed from tools.json.
"2026-01-15T09:30:00Z"

