Skip to main content

Images

Upload images to your Ghost site. Requires GHOST_ADMIN_API_KEY.

Tools

ToolDescription
admin_upload_imageUpload an image file or from URL

admin_upload_image

Upload an image for use in posts, pages, or profiles. Supports both local file paths and URLs.

Upload from local file

{
"file_path": "/path/to/image.jpg",
"purpose": "image"
}

Upload from URL

{
"url": "https://example.com/photo.jpg",
"purpose": "image"
}

Upload a profile image

{
"file_path": "/path/to/avatar.png",
"purpose": "profile_image",
"ref": "user-123-avatar"
}

Key parameters

ParameterTypeDescription
file_pathstringLocal path to the image file
urlstringURL of the image to upload
purposestringImage purpose (see below)
refstringOptional reference identifier

Purpose values

PurposeDescription
imageGeneral content image (default)
profile_imageUser profile/avatar image
iconSite icon (favicon)
tip

The response includes the uploaded image URL, which you can use in feature_image when creating or updating posts.