# build_missing_tool_notification

> **Function** in `deepagents_code`

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

Build a `PendingNotification` for a missing optional tool.

The returned entry carries the install hint (or URL) in a typed payload so
the notification center action handler can copy it / open it without
re-running platform detection.

## Signature

```python
build_missing_tool_notification(
    tool: str,
) -> PendingNotification
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `tool` | `str` | Yes | Name of the missing tool (e.g. `"ripgrep"`, `"tavily"`). |

## Returns

`PendingNotification`

A registry entry ready for `NotificationRegistry.add`.

---

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