# looks_like_dropped_payload

> **Function** in `deepagents_code`

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

Return whether a payload has the shape a terminal uses for a file drop.

Terminals deliver a dragged file as an absolute path (POSIX or Windows
drive/UNC), a `~/` path, or a `file://` URL, so requiring that shape keeps a
payload that *begins* with a hand-typed relative path (`assets/logo.png`)
from being mistaken for a drop. Without this guard `parse_pasted_path_payload`
would resolve such a token against the working directory, and a caller that
rejects drops would swallow ordinary text. The check is leading-token only:
once the first token passes, later relative tokens still resolve against the
working directory.

Pure string inspection, so callers can apply it on the event loop to decide
whether the filesystem-touching parse is worth a thread hop at all.

## Signature

```python
looks_like_dropped_payload(
    text: str,
) -> bool
```

## Parameters

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

## Returns

`bool`

`True` when the payload begins like a dropped path.

---

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