# dropped_payload_paths

> **Function** in `deepagents_code`

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

Return resolved file paths from a payload that looks like a file drop.

Applies `parse_pasted_path_payload` — the same parser the chat input's drop
handling uses, which only resolves paths that exist on disk — behind a shape
guard that requires the drop form terminals actually emit (see
`looks_like_dropped_payload`). Text-only inputs use this to detect a
dragged file so it can be rejected instead of inserted as a path.

Leading-path-plus-trailing-text payloads (`<path> what is this?`) are
deliberately out of scope: `allow_leading_path` stays off, matching the
chat input's own drop-time calls, which handle that shape later at submit
time instead.

## Signature

```python
dropped_payload_paths(
    text: str,
) -> list[Path]
```

## Parameters

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

## Returns

`list[Path]`

Resolved file paths found in the payload, or an empty list.

---

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