Pedra
v0.8.0AI real-estate photo editing and 360° virtual tours via the Pedra API: staging, renovation, video.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pedra_request_access Get a Pedra account
This Pedra server has no API key yet. Use this when the user wants to use Pedra (photo editing, virtual staging, videos, 360° tours): ask for their email, then call this. Pedra emails them a link to confirm: a new user creates their account there (chooses a password), an existing user clicks Allow. Nothing is created until they click. Tell the user to check their inbox, then call pedra_check_access with the requestId.
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email address (ask them for it; don't guess). |
agentName | string | Shown to the user in the email, e.g. "Claude Code". Defaults to this MCP client's name. |
pedra_check_access Check Pedra account access
Check whether the user confirmed the access request from pedra_request_access. "pending": they haven't clicked yet, check again in a few seconds. "approved": every Pedra tool works from now on in this session; show the user the result's message so they can keep their API key. "denied" or "expired": ask before requesting again.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | The requestId from pedra_request_access. |
pedra_enhance Enhance image
Enhance a real-estate photo: improve lighting, color, and sharpness. Returns the enhanced image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
preserveOriginalFraming | boolean | Preserve the original framing/aspect ratio/resolution exactly (for verification verticals where the output must legally represent the captured photo). Defaults to false. |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_enhance_and_correct_perspective Enhance + correct perspective
Enhance a photo and correct vertical/horizontal perspective (straighten walls and lines). Returns the corrected image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
preserveOriginalFraming | boolean | Preserve the original framing/aspect ratio/resolution exactly (for verification verticals where the output must legally represent the captured photo). Defaults to false. |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_correct_perspective Correct perspective
Straighten vertical lines in a photo shot with a tilted camera, without enhancing light or color. Use pedra_enhance_and_correct_perspective to do both. Returns the corrected image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_make_hd Make HD
Upscale a photo with AI to a sharper, higher-resolution version. Use it on small or blurry listing photos. Returns the HD image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_empty_room Empty room
Remove all furniture and objects from a room, leaving an empty space. Returns the emptied image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_furnish Furnish / virtually stage
Virtually stage (furnish) a room with AI-generated furniture. Returns the staged image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
roomType | string | e.g. "Living room", "Bedroom", "Kitchen". Auto-detected if omitted. |
style | string | e.g. "Minimalist", "Scandinavian", "Modern". |
pedra_furnish_same_room Stage one room from several angles
Virtually stage 2 to 10 photos of the SAME room, taken from different angles, so every photo gets the same furniture in the same places. Stages the first photo in the given style, then furnishes every other angle from it (or from referenceImageUrl if the room is already staged). Use this instead of calling pedra_furnish per photo whenever the user has several shots of one room: pedra_furnish would give each photo different furniture. Put the widest shot first. Costs 1 credit for the first photo and 2 per extra angle. Runs in the background: returns a jobId right away; call pedra_get_furnish_sa…
| Parameter | Type | Description |
|---|---|---|
imageUrls * | array | 2 to 10 photos of one room, widest shot first: public https:// URLs, data: URIs, or absolute paths to local image files on this computer. One room per call: stage the living room and the bedroom as se… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
referenceImageUrl | string | Optional public URL of a photo of this room that is already staged. Every photo in imageUrls is then furnished to match it (2 credits each) and style is ignored. |
roomType | string | e.g. "Living room", "Bedroom". Auto-detected if omitted. |
style | string | Style for the first photo, e.g. "Minimalist", "Scandinavian". Required unless referenceImageUrl is set. |
pedra_get_furnish_same_room Check multi-angle staging
Check a job started with pedra_furnish_same_room. Returns status "processing", "ready", "partial" (some photos failed and weren't charged) or "failed", plus one output per photo in the order sent, each with its own status and, once ready, its url. Never spends credits.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Id returned by pedra_furnish_same_room. |
pedra_renovation Renovate space
Renovate a space (walls, floors, finishes), optionally furnished. Returns the renovated image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
furnish | Whether the renovated room should be furnished (true → with furniture, false → empty). | |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
roomType | string | Room type. Auto-detected if omitted. |
style | string | Renovation style. |
pedra_edit_via_prompt Edit via prompt
Edit an image from a natural-language instruction (e.g. "paint the walls sage green"). Returns the edited image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
prompt * | string | Natural-language description of the edit to apply. |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_sky_blue Replace sky
Replace a dull or overcast sky with a clear blue one. Returns the image URL with the new sky. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
skyStyle | string | Optional named sky style. |
pedra_remove_object Remove object
Remove an object from an image using a mask. Returns the cleaned image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
maskUrl * | string | Mask image marking the region to remove: a public https:// URL, a data: URI, or a local file path. |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_blur Blur objects
Blur objects in an image (e.g. faces, license plates) for privacy. Returns the blurred image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Source image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'… |
objectsToBlur * | array | Labels/regions to blur, e.g. ["faces", "license plates"]. |
name | string | Optional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a… |
preserveAspectRatio | boolean | By default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the… |
propertyId | string | Optional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on… |
pedra_create_video Create property video
Create a property video from a list of images. Blocks server-side until the video is rendered (up to ~10 min) and returns the finished video URL inline.
| Parameter | Type | Description |
|---|---|---|
images * | array | Ordered list of images that make up the video. |
branding | object | |
endingSubtitle | string | |
endingTitle | string | |
isVertical | boolean | Force a vertical (9:16) video. |
music | object | |
propertyCharacteristics | array | |
voice | object |
pedra_update_video Edit existing video
Edit an existing video (by videoId) without re-rendering unchanged clips — only new/changed photos re-animate and cost credits; reordering, music, voice, branding and text re-stitch for free. Omit `images` to change only audio/text/branding while keeping the current timeline. Omit `music`/`voice`/`branding`/ending text to leave them unchanged. Blocks until rendered and returns the new video URL.
| Parameter | Type | Description |
|---|---|---|
videoId * | string | Id of the video to edit (from pedra_create_video). |
branding | object | |
endingSubtitle | string | |
endingTitle | string | |
images | array | Full ordered image list to rebuild the timeline; matching photo+effect clips are reused. Omit to edit only audio/text and keep the current timeline. |
isVertical | boolean | Force a vertical (9:16) video (only when images are sent). |
music | object | |
propertyCharacteristics | array | |
voice | object |
pedra_generate_voice_script Generate voiceover script
Write a short voiceover script from property photos (and optional facts). GPT-4o vision reads the images so the script reflects what's actually shown. Returns the script text — pass it to pedra_generate_voice.
| Parameter | Type | Description |
|---|---|---|
images | array | Photos to base the script on (URLs or { imageUrl }). |
language | string | Script language, e.g. "English", "Español". Defaults to English. |
propertyCharacteristics | array |
pedra_generate_voice Generate voiceover audio
Render a voiceover from a script via text-to-speech. Returns an audioId — pass it to pedra_create_video / pedra_update_video as voice.audioId to attach the narration (with synced subtitles).
| Parameter | Type | Description |
|---|---|---|
text * | string | The script to narrate (max 1000 characters). |
language | string | Voice language, e.g. "English", "Español". Defaults to English. |
voiceId | string | Which voice narrates. Call pedra_music_library for the voices offered per language — a voice is only valid for the language it is listed under. Defaults to that language's first voice. |
pedra_music_library List music tracks
List the background-music catalog: valid `music.track` values (genre keys), plus the voice languages and the narration voices offered for each of them. Read-only.
pedra_list_properties List properties
List the user's Pedra properties (id, name, photo count, and an appUrl to open each in Pedra). Use this to find photos already in the account — e.g. to build a video from a listing's photos.
pedra_list_property_images List property photos
List the photos in a Pedra property as img.pedra.ai URLs, ready to pass straight to pedra_create_video or the image-editing tools. Get the propertyId from pedra_list_properties. Pass type "360" to list its 360° photos instead (their imageIds are the scenes of a virtual tour).
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | The property's id (from pedra_list_properties). |
type | string | Which images to list: regular photos ("photo", the default) or 360° photos ("360"). |
pedra_create_property Create property
Create a new Pedra property. Returns its propertyId and an appUrl. To add photos that are on the user's device, pedra_create_upload_link is simpler (no login); or give the user the appUrl to open the property in Pedra and drop their photos in, then use pedra_list_property_images.
| Parameter | Type | Description |
|---|---|---|
name | string | Property name, e.g. the listing address. |
pedra_add_images_to_property Add photos to property
Add photos to a property by URL (the server fetches each one, so any public https image URL or small data: URI works). Returns the stored img.pedra.ai URLs to use with the editing, video and tour tools. For photos on the user's device, use pedra_create_upload_link instead. Pass type "360" for 360° photos (checked to be 2:1 equirectangular), which can then become a virtual tour. (With this local server, 360° photo files on this computer can go through pedra_add_local_panoramas instead.)
| Parameter | Type | Description |
|---|---|---|
imageUrls * | array | Image URLs to fetch and add to the property: up to 20 photos, or up to 10 when type is "360". |
propertyId * | string | Target property id (from pedra_list_properties or pedra_create_property). |
names | array | Optional names, one per image in the same order as imageUrls (e.g. the original file names), up to 200 characters each. Returned by pedra_list_property_images and as source.name when the photo is edit… |
type | string | What the images are: regular photos ("photo", the default) or 360° photos ("360"). |
pedra_add_local_panoramas Add local 360° photos to property
LOCAL-ONLY TOOL (this Pedra MCP server runs on the user's own computer, so it can read files from its disk). Upload 360° photo files (2:1 equirectangular JPEG, PNG or WebP) from absolute local paths into a property, in the order given — that order becomes the walking order when you then call pedra_create_virtual_tour with just the propertyId. Files are sent in batches (10 per call, under the 50 MB request limit); a file over ~33 MB can't be sent this way — use pedra_create_upload_link for those. Prefer this over pedra_create_upload_link whenever the 360° photos are files on this computer…
| Parameter | Type | Description |
|---|---|---|
paths * | array | Absolute paths to 360° photo files on this computer, in walking order (file:// URLs and ~ are accepted). |
propertyId * | string | Target property id (from pedra_list_properties or pedra_create_property). |
pedra_create_upload_link Create photo upload link
Get a link where the user (or their photographer) uploads photos from their phone or computer into a property. No login, valid 24 hours. Use this whenever the photos are files on the user's device that weren't attached to the chat: for editing, videos or virtual tours. Regular photos and 360° photos both work (360° photos are recognised automatically); pass type "360" for a virtual tour so anything else is refused. Creates the property if no propertyId is given. Give the user the uploadUrl, wait until they say they're done, then use pedra_list_property_images (type "360" for 360° photos), o…
| Parameter | Type | Description |
|---|---|---|
language | string | Language of the tour page and of AI room names. Defaults to "en". |
name | string | Name for the new property, e.g. the listing address. Ignored when propertyId is given. |
propertyId | string | Property to upload into (from pedra_list_properties). Omit to create a new one. |
type | string | "any" (default) takes photos and 360° photos; "360" only takes 360° photos. |
pedra_create_virtual_tour Create virtual tour
Build a hosted 360° virtual tour: the rooms are named and linked with navigation points by AI, and you get a shareable link and embed code. Pass the 360° photos as scenes (URLs, or imageIds of 360° photos already in the property) in the order someone would walk through the home, or just a propertyId to use all its 360° photos. Linking: "sequential" (default) links each room to the next and costs max(3, ceil(rooms/3)) credits; "smart" lets AI work out which rooms connect (slower, 5-160 credits by room count); "none" is free. Returns a tourId immediately — the build takes about 10 seconds…
| Parameter | Type | Description |
|---|---|---|
language | string | Language of the tour page and of AI room names. Defaults to "en". |
linking | string | How rooms get connected. Defaults to "sequential". |
name | string | Tour title, e.g. the listing address. |
propertyId | string | Property the tour belongs to. Omit to create a new property. |
scenes | array | The rooms in walking order. Omit to use every 360° photo in propertyId. |
pedra_get_virtual_tour Check virtual tour
Get a virtual tour: status ("processing", "ready" or "failed", with the reason), the shareable tourUrl, an embedCode iframe for a website, and its scenes and navigation links. Poll this after pedra_create_virtual_tour or pedra_add_virtual_tour_scenes. Read-only.
| Parameter | Type | Description |
|---|---|---|
tourId * | string | Id from pedra_create_virtual_tour or pedra_list_virtual_tours. |
pedra_list_virtual_tours List virtual tours
List the account's virtual tours (newest first) with status, share link and room count. Optionally only one property's. Read-only.
| Parameter | Type | Description |
|---|---|---|
propertyId | string | Only this property's tour. |
pedra_update_virtual_tour Edit virtual tour
Change a finished virtual tour in place: rename it or its rooms, reorder rooms (the first one is where the tour opens), remove rooms, replace its navigation links, or change how the navigation points look. Free and instant. The tour's public link shows the change right away. Get sceneIds from pedra_get_virtual_tour.
| Parameter | Type | Description |
|---|---|---|
tourId * | string | The tour to change. |
language | string | Language of the tour page and of AI room names. Defaults to "en". |
links | array | Replaces ALL navigation links. Each is one direction; add the return link separately. |
name | string | New tour title. |
navigationSize | string | Size of the navigation points. |
navigationStyle | string | Look of the navigation points. |
removeScenes | array | sceneIds to take out of the tour (the photos stay in the property). Their links go too. |
sceneNames | object | New room names, as { sceneId: "Kitchen" }. |
sceneOrder | array | Every sceneId of the tour in the new order. The first one opens the tour. |
showLabels | boolean | Always show room names next to the navigation points. |
pedra_add_virtual_tour_scenes Add rooms to virtual tour
Add rooms to the end of an existing virtual tour. With "sequential" linking (default) only the new stretch is linked: the last existing room to the first new one, then each new room to the next. That costs max(3, ceil(new rooms/3)) credits; "none" is free. The tour stays live while this runs; poll pedra_get_virtual_tour until status is "ready".
| Parameter | Type | Description |
|---|---|---|
scenes * | array | The new rooms, in walking order. |
tourId * | string | The tour to extend. |
linking | string | Defaults to "sequential". |
pedra_credits Get credits
Read the account's plan and remaining credits. Never deducts credits.
pedra_feedback Submit feedback
Submit thumbs up/down feedback on a generated image, with an optional credit-back on a thumbs-down (subject to the API's eligibility rules).
| Parameter | Type | Description |
|---|---|---|
comment | string | |
creditBack | boolean | Request a credit refund (only honored on a thumbs-down). |
imageId | string | Explicit image id. One of imageUrl/imageId is required. |
imageUrl | string | The generated image URL to vote on (id is parsed from it). |
vote | string | Thumbs up/down. An empty string clears a previous vote. |