add_photo
Safely import an HTTPS photo into the contractor's media library. Boatwork MCP downloads the source through public-network-only, DNS-pinned HTTPS with a strict 10MB/MIME cap, then uses the durable reserve → exact-header PUT → malware-scan → completion flow. ALWAYS pass a contextual title when you have one. Reuse clientUploadId when retrying the same logical import.
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": {
"url": "<url>",
"proAccessToken": "<proAccessToken>"
},
"name": "add_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTPS source URL. Redirects are revalidated; private-network targets are rejected. | |
| title | No | Human-readable label for the photo. Used as the dashboard tile name, alt-text on the public /pro/<slug>/ page, and SEO signal. Example: 'Catamaran service at Hatchet Bay'. Omit only if you truly have no context — server auto-fallback is '<Contractor Name>'. | |
| orderIndex | No | Sort position. 0 first. | |
| showOnSocial | No | Default true. False = exclude from social posts at upload time (independent of showOnWebsite — the photo can still appear on the public site). | |
| showOnWebsite | No | Whether the item shows in the public storefront gallery. Omit it when the upload is for a social post: on a storefront with Presence the server then follows the owner's setting 'Add photos and videos you post to your storefront gallery', which is off unless the owner turned it on (a storefront without Presence shows the item). Pass true only when the owner asked for this item on their storefront. Pass false to keep it out. | |
| clientUploadId | No | Optional idempotency key. Reuse it only when retrying this exact file. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |