bricks_upload_media
Upload an image to the WordPress Media Library using a local file path or URL, and retrieve the attachment ID, URL, and metadata needed for Bricks image elements.
Instructions
Upload an image to the WordPress Media Library. Provide either a local file_path or a URL. Returns the attachment ID, URL, and metadata needed for Bricks image elements.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bricks_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of an image to download and upload | |
| title | No | Title for the media attachment (optional) | |
| caption | No | Caption for the image (optional) | |
| alt_text | No | Alt text for the image (optional) | |
| file_path | No | Absolute path to a local image file |