# sanitize_tool_call_id

> **Function** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/backends/utils/sanitize_tool_call_id)

Sanitize tool_call_id to prevent path traversal and separator issues.

Replaces dangerous characters (., /, \) with underscores.

## Signature

```python
sanitize_tool_call_id(
    tool_call_id: str,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/b710a69b12e49479045eaa54dfb709326473500b/libs/deepagents/deepagents/backends/utils.py#L99)