create_aviso_from_photo
Creates a Valencia city incident report from a photo: validates category and address, shows a preview, and sends only after human confirmation.
Instructions
Aviso desde una FOTO en fases. VÍA PREFERIDA: sube la foto con PUT /upload (curl) y pasa file_id; por stdio usa image_path local. Sin categoria → sugiere (need_category). Con categoria pero sin address/coords → error con ayuda (usa geocode). Con todo → preview + preview_token SIN enviar. Envío: MISMOS campos + confirm:true + human_confirmed:true + preview_token (tras 'sí' humano). Sin las tres NO se envía.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | sobrescribe el GPS EXIF de la foto | |
| lon | No | sobrescribe el GPS EXIF de la foto | |
| fuente | No | ||
| address | No | ||
| confirm | No | true = ENVIAR de verdad (requiere preview_token + human_confirmed) | |
| file_id | No | VÍA PREFERIDA en remoto: id de PUT /upload | |
| identity | No | Sobrescribe la identidad guardada solo para esta llamada | |
| categoria | No | código TCOM-xxx. Si falta, devuelve sugerencias y no crea nada | |
| image_path | No | ruta local. Solo stdio/CLI en la máquina del servidor | |
| description | No | si falta, se pre-rellena y se marca para revisión | |
| image_base64 | No | ||
| category_hint | No | ||
| preview_token | No | ||
| human_confirmed | No | el humano vio el preview y dijo 'sí' |