# import_media

> Page: https://docs.flung.dev/mcp/tools/import-media. Index of every page: https://docs.flung.dev/llms.txt

Add an image or video from a URL. Flung fetches a public https image or video and keeps a copy; pass the returned id in mediaIds to schedule_post. JPEG, PNG, WebP, GIF, MP4 and QuickTime, up to 100 MB this way.

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Flung fetches a public https image or video and keeps a copy; pass the returned id in mediaIds to schedule_post. JPEG, PNG, WebP, GIF, MP4 and QuickTime, up to 100 MB this way. |
| Does it change anything? | Changes something. |
| Which endpoint does it call? | [`POST /v1/media/import`](https://docs.flung.dev/reference/api/post-v1-media-import.md) |
| Which server? | `https://mcp.flung.dev/mcp-oauth` (sign in) or `https://mcp.flung.dev/mcp` (API key). |

## Arguments

| Argument | Type | Required | Description |
|---|---|---|---|
| `url` | `string` | yes | A public https address of the file. at most 2048 characters. |

## Example call

```json
{
  "name": "import_media",
  "arguments": {
    "url": "https://example.com/launch.jpg"
  }
}
```

## Things a person might say

- "Post this image to Instagram: https://example.com/launch.jpg"

## Annotations

| Hint | Value |
|---|---|
| `readOnlyHint` | false |
| `destructiveHint` | false |
| `idempotentHint` | false |
| `openWorldHint` | true |

## See also

| Doc | Why |
|---|---|
| [MCP tools](https://docs.flung.dev/mcp/tools.md) | Every tool |
| [Connect an AI agent](https://docs.flung.dev/mcp.md) | Install the server in your client |
| [`POST /v1/media/import`](https://docs.flung.dev/reference/api/post-v1-media-import.md) | The same operation over HTTP |
