# get()

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/subagents/get/
Language: en

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

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

Status: free · account first · content included

```javascript
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
```

## null means inherit {#inherit}

| Field | null means |
| --- | --- |
| `tools` | The parent agent's selection |
| `model` | The 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 {#order}

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

## Subagents have no extra files {#no-files}

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

- [save()](/sdk/ref/agents/subagents/save): Changing it.
- [SKILL.md format](/sdk/agent/skills-and-subagents/skill-format): The file.

```python
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
```
