# discover_skills_and_roots

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/skills/invocation/discover_skills_and_roots)

Discover skills and build pre-resolved containment roots.

## Signature

```python
discover_skills_and_roots(
    assistant_id: str,
) -> tuple[list[ExtendedSkillMetadata], list[Path]]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `assistant_id` | `str` | Yes | Agent identifier used to resolve user skill directories. |

## Returns

`tuple[list[ExtendedSkillMetadata], list[Path]]`

Tuple of `(skill metadata list, pre-resolved containment roots)`.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/skills/invocation.py#L28)