upload_image
Upload a local image file to Ghost storage and get its URL for use in posts, pages, or profile images. Provide the file path and optional purpose.
Instructions
Upload one image from a local file path to Ghost storage; returns its URL. [POST /admin/images/upload/]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional reference string returned with the upload result. | |
| purpose | No | Image purpose. profile_image and icon must be square; icon also accepts .ico. Default: image. | |
| file_path | Yes | Absolute path to the local file to upload. |