# Upload Image

Opens an MCP App file picker for uploading a local image into the email-editor library. The user chooses the file; this call itself stores nothing. Public image URLs use upload-email-editor-image-from-url instead.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "uploaded",
    "storedAs",
    "image",
    "folders",
    "html"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "uploaded": {
      "type": "boolean"
    },
    "storedAs": {
      "type": [
        "string",
        "null"
      ]
    },
    "image": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "url",
        "path",
        "fileName",
        "mimeType",
        "sizeBytes",
        "uploadedAt",
        "width",
        "height"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "fileName": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "sizeBytes": {
          "type": "integer"
        },
        "uploadedAt": {
          "type": "string"
        },
        "width": {
          "type": [
            "integer",
            "null"
          ]
        },
        "height": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "folders": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "html": {
      "type": "string"
    }
  }
}
```

