# is_web_search_tool

> **Function** in `deepagents_code`

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

Return whether `candidate` is a built-in or workspace-bound search tool.

## Signature

```python
is_web_search_tool(
    candidate: object,
) -> bool
```

## Returns

`bool`

`True` for the module-level tool or any variant the factory marked.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/tools.py#L386)