# collect_built_in_tools

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tool_catalog/collect_built_in_tools)

Enumerate the built-in tools the agent binds by default.

Compiles the agent with an offline placeholder model and reads the bound
tool node. Memory and skills are disabled because they contribute no tools
(they only augment the system prompt). The selected assistant id is still
forwarded so agent-specific subagents are loaded from the same directory the
normal launch path uses. The custom CLI tools are included the same way
`server_graph._build_tools` adds them, so `web_search` appears only when
Tavily is configured.

## Signature

```python
collect_built_in_tools(
    *,
    assistant_id: str = 'agent',
    enable_interpreter: bool = False,
) -> list[ToolEntry]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `assistant_id` | `str` | No | Resolved dcode agent identifier to compile. (default: `'agent'`) |
| `enable_interpreter` | `bool` | No | Wire the JS interpreter middleware so `js_eval` appears when the default agent would bind it. Callers should pass the resolved runtime setting (see `_resolve_enable_interpreter`) so the list matches the tools the agent actually binds. (default: `False`) |

## Returns

`list[ToolEntry]`

Built-in tools in bind order.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/tool_catalog.py#L182)