# Give a file to an AI agent, or get one back

Chat windows are bad at files. Pasting a 40 MB log into a prompt does not work, and files an agent writes on a remote machine are hard to get at. A link solves both directions.

## Give an agent a file

Upload it, then paste the link into the chat:

```sh
fuzzy put crash.log --ttl 2h --share
```

An agent that can fetch URLs reads it from the link. An agent connected over [MCP](mcp-connect.md) can also list and read your files itself, with no link needed.

## Get a file back from an agent

Connect the agent once, with its own named key so you can see and revoke what it does:

```sh
# prints the new key once: store it as FUZZY_KEY in your shell or secret store
fuzzy keys add claude-code
claude mcp add --transport http fuzzyshare https://fuzzyshare.com/mcp \
  --header "Authorization: Bearer $FUZZY_KEY"
```

Then ask: "Upload the report you just wrote and give me a link that lasts two hours." The agent calls `upload_file` and `share_file` and replies with the URL. Other clients are on [Connect an agent](mcp-connect.md).

## Keep it safe

- Ask for short lifetimes, and a passphrase for anything sensitive. Tell the agent to give you the passphrase separately from the link.
- One key per agent, so you can revoke it alone.
- Large files go over HTTP, not MCP: MCP carries at most 5 MB, and the agent can use `curl` or the CLI for more.

## Related

- [Use FuzzyShare with AI agents](guides-agents.md)
- [MCP tools](mcp-tools.md)
