Subagents library

get()

api.agents.subagents.get(name) → Promise<Subagent>

One subagent with its instructions, its tool selection and its model. The account first, then this computer.

freeaccount firstcontent included
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const explorer = await api.agents.subagents.get("explore");

console.log(explorer.description);
console.log(explorer.tools);      // ["read", "list", "glob", …] or null
console.log(explorer.model);      // "gemini-3.5-flash" or null
console.log(explorer.content);    // its instructions
explorer = api.agents.subagents.get("explore")

print(explorer["description"])
print(explorer.get("tools"))     # ["read", "list", "glob", …] or None
print(explorer.get("model"))     # "gemini-3.5-flash" or None
print(explorer["content"])       # its instructions

null means inherit

Fieldnull means
toolsThe parent agent's selection
modelThe parent agent's model

A file that names a model of another family — or writes inherit — comes back as null rather than failing, so a file copied from elsewhere works unchanged.

The order

The account first; only a 404 falls through to the disk. Any other refusal is raised.

Subagents have no extra files

A subagent is one document. readFile() answers not_a_skill on this library.