# parse_single_pasted_file_path

> **Function** in `deepagents_cli`

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

Parse and resolve a single pasted path payload.

Unlike `parse_pasted_file_paths`, this helper only accepts one path token
and is intended for fallback handling when a paste event carries a
single path representation.

## Signature

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

## Parameters

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

## Returns

`Path | None`

Resolved path when payload is a single existing file, otherwise `None`.

---

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