# normalize_pasted_path

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/input/normalize_pasted_path)

Normalize pasted text that may represent a single filesystem path.

Supports:

- quoted and shell-escaped single paths
- `file://` URLs
- Windows drive-letter and UNC paths

## Signature

```python
normalize_pasted_path(
    text: str,
) -> Path | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Raw pasted text payload. |

## Returns

`Path | None`

Parsed `Path` if payload is a single path token, otherwise `None`.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/b710a69b12e49479045eaa54dfb709326473500b/libs/cli/deepagents_cli/input.py#L473)