Subagents library

Overview

The account's subagents and this computer's, as one list. Same shape as the skills library — and this is what gives an agent the task tool.

account + computerno built-insno task without one
Using Python?

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

CallDoes
list()Both sources, merged.
get(name)One, with its content, tools and model.
save(item)Creates or replaces — on the account.
remove(name)Removes it from the account.
There are no built-in subagents

With an empty library, the task tool is not declared at all. An agent that « never delegates » is usually an agent with nothing to delegate to — libraryStatus says whether that is because there is nothing, or because a source refused.

await api.agents.subagents.save({
  name: "explore",
  description: "Dig through files and data to answer a question, and report the facts.",
  tools: ["read", "list", "glob", "grep", "search", "fetch", "query_storage", "account"],
  model: "gemini-3.5-flash",
  content: "Find what was asked. Quote exactly, with paths. Do not change anything.",
});
api.agents.subagents.save(
    name="explore",
    description="Dig through files and data to answer a question, and report the facts.",
    tools=["read", "list", "glob", "grep", "search", "fetch", "query_storage", "account"],
    model="gemini-3.5-flash",
    content="Find what was asked. Quote exactly, with paths. Do not change anything.",
)

Two fields skills do not have

toolsstring[]

Which tools it gets. Absent means the parent's selection.

modelstring

Its own model. Absent means the parent's.

The read-only set

For an investigating subagent: read, list, glob, grep, search, fetch, query_storage, account. Everything that looks, nothing that changes.

Three tools it never gets

ask_user, todo_write and memory, whatever its file says — it cannot talk to the user, does not hold the plan, and does not change what is remembered. It gets recall instead.