Attach a photo link to a flood observation
add_observation_photo_linkAttach an http(s) photo link, plus optional caption and credit, to a flood observation record; only links are stored, never uploaded files.
Instructions
Attach a photo to a flood observation as a reference LINK (never a file).
MCP never uploads photo bytes. A local path, file:// URL or data: URI is refused: to upload a photo file, open the observation in the map and use the photo strip on its form (JPEG, PNG or HEIC, 25 MB, 10 per observation). The link counts toward the 10.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fid | Yes | The observation's fid | |
| credit | No | Who took it / the rights holder (optional) | |
| caption | No | What the photo shows (optional, up to 500 characters) | |
| layer_id | Yes | The flood observation layer id | |
| project_id | Yes | The project ID | |
| reference_url | Yes | An http(s) link to the photo (stored, never fetched) | |
| public_consent | No | Show this photo to visitors of a public project (default false: members only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||