Human in the loop1.6.9 以降
Claude、ChatGPT、Codex などの AI エージェントが、カメラを動かす、ネットワークをスキャンする、設定を変える前にあなたの承認を得る必要があるか、それともそのまま実行するかを選びます。
アプリでの場所: /system/agents
Human in the loop(人による承認)は、サーバーに接続した AI エージェントが、PTZ カメラを動かす、ネットワークをスキャンする、カメラを削除する、設定を変えるなどのリスクのある操作の前に、あなたに確認しなければならないかを決めます。
- オン: エージェントはリスクのある操作ごとにあなたの承認を得る必要があります。対応しているアプリでは Vigiora の「Allow / Deny」プロンプトが表示されます。それ以外のアプリは、まずチャットであなたに確認しなければなりません。
- オフ: エージェントは確認せずにそのまま実行します。
対象は、MCP サーバーを使う AI エージェントです(claude.ai、Claude Desktop、ChatGPT、Claude Code、Codex、Cursor など)。REST API を呼ぶスクリプトには確認は求められません。読み取り(カメラ、スナップショット、アラート、録画)に承認は不要です。
Human in the loop は既定でオンです。エージェントにできること自体は変わりません。それは引き続き、キーのスコープまたはあなたが承認したアクセス、あなたのロール、カメラの権限で決まります。決まるのは、エージェントが先に確認するかどうかだけです。
設定する場所#
設定する場所は 4 つあります。サーバーの設定はすべてに適用され、API キーと接続済みアプリはそれぞれ、その設定に従うか上書きできます。
| 場所 | 誰が | 選べる内容 |
|---|---|---|
| 「設定 → AI とアドオン → AI エージェント」 | 管理者が変更し、operator は閲覧のみ | サーバー全体で「Human in the loop」をオンまたはオフ。 |
| 「設定 → ユーザーとアクセス → API キー」の「Ask before actions」列 | 各ユーザーが自分のキーを、管理者はどのキーでも | 「Use server setting」「Always ask」「Never ask」。 |
| 「API keys → Connected apps」の「Ask before actions」列 | 各ユーザーが自分のアプリを、管理者はどのアプリでも | 「Use server setting」「Always ask」「Never ask」。 |
| コネクタのサインインページの「Ask me before actions」 | サインインする人 | このアプリについて、チェックを入れるかどうか。 |
変更は、エージェントの次の操作から適用されます。エージェントを接続し直す必要はありません。
サーバーの設定#
「AI agents」タブを開きます
「設定 → AI とアドオン → AI エージェント」を開きます。
スイッチをオンまたはオフにします
「Human in the loop」をオンまたはオフにします。すぐに保存されます。
API キーごと、接続済みアプリごと#
「設定 → ユーザーとアクセス → API キー」では、各キーに「Ask before actions」メニューがあり、「Connected apps」の各アプリにも同じメニューがあります。
| 選択肢 | 説明 | 既定値 |
|---|---|---|
| Use server setting | 設定 → AI とアドオン → AI エージェント に従います。メニューには、サーバーの設定が括弧内に表示されます(例:(Always ask))。 | はい |
| Always ask | このキーまたはアプリを使うエージェントは、サーバーの設定がオフでも、常に先に確認します。 | — |
| Never ask | このキーまたはアプリを使うエージェントは、そのまま実行します。サーバーの設定がオンの間は、管理者だけが選べます。 | — |
アプリを接続するとき#
claude.ai、ChatGPT など、サインインするアプリに Vigiora を追加すると、Vigiora のサインインページのアクセスの選択の下に「Ask me before actions」チェックボックスがあります。初期値はサーバーの設定と同じです。そのままにすると、アプリはサーバーの設定に従います。変更すると、アプリには専用の「Always ask」または「Never ask」が設定され、あとで「Connected apps」で変更できます。
オフにできる人#
- サーバーの設定を変更できるのは管理者だけです。
- サーバーの設定がオンの間は、キーやアプリに「Never ask」を選べる(または接続時にチェックを外せる)のは管理者だけです。ほかのユーザーは「Use server setting」か「Always ask」を選べます。
- サーバーの設定がオフの間は、各ユーザーが自分のキーとアプリに任意の値を選べます。
- サーバーの設定がオフの間にユーザーが「Never ask」を選び、そのあと管理者が設定をオンにした場合、その選択は無効になり、キーやアプリはまた確認するようになります。メニューには「Asks anyway: an admin turned it on for the server.」と表示されます。管理者が選んだ「Never ask」は引き続き有効で、「Set by an admin」と表示されます。
- エージェントが自分でオフにすることはできません。API キーと接続済みアプリはキーやアプリを管理できず、コネクタでサインインしたアプリには設定のツールが与えられず、サーバーの設定の変更自体も承認が必要な操作です。
承認が必要な操作#
Human in the loop がオンの間、エージェントは次のような操作の前に確認します。
- PTZ カメラを動かす、プリセットに移動する
- ネットワークをスキャンまたは探索する、カメラのアドレスを調べる
- カメラを追加、変更、移動、オンまたはオフ、削除する、カメラの AI をオンまたはオフにする
- クリップを共有または削除する、録画の保護を解除する
- 設定を変更する(この設定とカメラの自動検出を含む)、ヘルスチェックの自動修正を実行する、設定をインポートする
- ユーザーを作成、変更、削除する
- Webhook を作成、変更、削除する、シークレットをローテーションする
- アラートを発生させる、または削除する。アラートルールを作成、変更、オンまたはオフ、削除する(1.6.10 から)
- カメラの AI サービスをオンまたはオフにする、その設定を変更する、PTZ のプリセットを保存する、参照フレームを削除する(1.6.10 から)
- サイト、グループ、部屋、スピーカー、レイアウトを作成、変更、削除する、顔に名前を付ける、または削除する、部屋で発話や音声の再生をする、スピーカーをテストする(1.6.10 から)
- AI Live を開始する、Guardian の会話を削除する、vigiora-clients を再起動、更新、削除する、サーバーの更新を確認する(1.6.10 から)
- Guardian の場面を削除する、Recently deleted を完全に消去する、画像とクリップを再計算する、クリップのプリロールと削除した場面の保持期間を変更する(1.6.13 から)
- Analytics のライン、ゾーン、エリアを作成、変更、削除する、カメラの Analytics 設定を変更する、エリアの在室人数を設定する、フロアプランとその項目を作成、変更、削除する(1.6.13 から)
- ルームのアラートルール、カメラのスピーカーでの発話、Home Assistant のインストール、更新、再起動、接続、削除(1.6.13 から)
- Home Assistant ブリッジの接続、共有するデバイスの選択、関連付け、トリガー、ルールのアクション、ルームのシグナル、デバイスへのコマンド送信(1.6.13 から)
- MQTT、Telegram、LINE の連携を変更する(1.6.15 から)
- Analytics のアラートルールを作成、変更、削除する、ドアディスプレイを作成または取り消す、カメラを DHCP に移行する、Home Assistant インスタンスを追加、変更、接続、切断、削除し、その共有デバイスを選ぶ(1.6.16 から)
- カメラのサイレンを鳴らす、止められなかったサイレンを静かになったと記録する(1.7.3 から)
読み取りには承認は不要です。また、PTZ の動きを止める、サイレンとすべての音を止める(1.7.3 から)、アラートを確認済みにする、録画を保護する、クリップやダウンロードリンクを作る、Webhook をテストする、削除した場面を復元する、連携や Home Assistant インスタンスをテストする(1.6.15 と 1.6.16 から)、説明からフロアプランを描く、それを変更する、その変更を取り消す(1.6.17 から)、AI ビューを作成または変更する、文字起こしを翻訳または要約する(1.6.18 から)、画像からカメラに名前を付ける、フロアプランのルームを同期する、Zigbee や IoT デバイスの名前変更・再設定・識別を行う、クライアントエラーの報告を解決または再び開く(1.6.19 から)といった、害のない書き込みにも承認は不要です。AI を使うものは AI クレジットを使うため、エージェントはそれでも実行前にその旨を伝えるべきです。AI ビューの削除は確認を求めます(1.6.18 から)。Zigbee の設定、ペアリングの受付を開くこと、デバイスの共有・非表示・忘れる・削除、IoT デバイスの変更も同様です(1.6.19 から)。署名付きのライブ映像とスナップショットのリンク(create_camera_stream_url、create_camera_snapshot_url)は読み取りです。カメラのフレームやアップロードした写真で物体を探すこと(detect_objects、analyze_image)と、録画からフレームを取得することも読み取りです。
正確な一覧は、API リファレンスから生成しています(x-vigiora-confirm が付いた操作と、破壊的な操作)。外部 AI ツールなど、ユーザーセッション専用の操作は除いています。エージェントはそれらを呼び出せません。
| MCP tool | API v1 operation | What it does |
|---|---|---|
accept_ptz_patrol_scan | POST /api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}/actions/accept | Save the proposed patrol |
add_detected_cameras | POST /api/v1/cameras/actions/add-detected | Add detected cameras |
apply_perception_coach | POST /api/v1/cameras/{camera_id}/actions/apply-perception-coach | Apply the Perception Coach suggestion |
apply_room_perception_coach | POST /api/v1/rooms/{room_id}/actions/apply-perception-coach | Apply the Perception Coach suggestion to a room |
bulk_update_cameras | POST /api/v1/cameras/actions/bulk-update | Change several cameras at once |
check_system_update | POST /api/v1/system/update/actions/check | Check for an update |
client_action_install_ffmpeg | POST /api/v1/clients/{client_id}/actions/install-ffmpeg | Install ffmpeg on a client |
client_action_restart | POST /api/v1/clients/{client_id}/actions/restart | Restart a vigiora-client |
client_action_resync_cameras | POST /api/v1/clients/{client_id}/actions/resync-cameras | Resync a client's cameras |
client_action_update | POST /api/v1/clients/{client_id}/actions/update | Update a vigiora-client |
command_home_assistant_device | POST /api/v1/integrations/home-assistant/devices/{entity_id}/actions/command | Run a command on a device |
connect_existing_home_assistant | POST /api/v1/integrations/home-assistant/actions/connect-existing | Connect an existing Home Assistant |
connect_home_assistant_bridge | POST /api/v1/integrations/home-assistant/bridge/actions/connect | Connect Home Assistant's devices |
connect_home_assistant_instance | POST /api/v1/integrations/home-assistant/instances/{instance_id}/actions/connect | Connect a Home Assistant instance |
create_alert | POST /api/v1/alerts | Report an alert |
create_alert_rule | POST /api/v1/cameras/{camera_id}/alert-rules | Create a Guardian alert rule |
create_analytics_alert_rule | POST /api/v1/analytics/alert-rules | Create an analytics alert rule |
create_analytics_area | POST /api/v1/analytics/areas | Create an analytics area |
create_analytics_display | POST /api/v1/analytics/displays | Create a door display |
create_analytics_line | POST /api/v1/analytics/lines | Create a counting line |
create_analytics_zone | POST /api/v1/analytics/zones | Create an analytics zone |
create_automation | POST /api/v1/automations | Create an automation |
create_camera | POST /api/v1/cameras | Add a camera |
create_camera_live_share | POST /api/v1/cameras/{camera_id}/live-shares | Create a live share link |
create_client_camera | POST /api/v1/clients/{client_id}/cameras | Add a camera on a client's network |
create_clip_share | POST /api/v1/clips/{clip_id}/shares | Create a public share link |
create_floor_plan | POST /api/v1/floor-plans | Upload a floor plan |
create_group | POST /api/v1/groups | Create a group |
create_home_assistant_instance | POST /api/v1/integrations/home-assistant/instances | Add a Home Assistant instance |
create_home_assistant_trigger | POST /api/v1/integrations/home-assistant/triggers | Create a device trigger |
create_label_alert_rule | POST /api/v1/cameras/{camera_id}/label-alert-rules | Create a label alert rule |
create_library_album_share | POST /api/v1/library/albums/{album_id}/shares | Create a public link to an album |
create_library_item_share | POST /api/v1/library/items/{item_id}/shares | Create a public link to a saved item |
create_motion_rule | POST /api/v1/cameras/{camera_id}/motion-rules | Create a smart-motion rule |
create_motion_zone | POST /api/v1/cameras/{camera_id}/motion-zones | Add a motion zone to a camera |
create_output | POST /api/v1/outputs | Add a speaker |
create_robot_place | POST /api/v1/cameras/{camera_id}/robot/places | Save the robot's current spot as a place |
create_room | POST /api/v1/rooms | Create a room |
create_room_alert_rule | POST /api/v1/rooms/{room_id}/alert-rules | Create a room Guardian alert rule |
create_runner_install_token | POST /api/v1/runners/install-token | Mint a runner install token |
create_site | POST /api/v1/sites | Create a site |
create_user | POST /api/v1/users | Add a user |
create_webhook | POST /api/v1/webhooks | Create a webhook |
delete_alert | DELETE /api/v1/alerts/{alert_id} | Delete an alert |
delete_alert_rule | DELETE /api/v1/alert-rules/{alert_rule_id} | Delete a Guardian alert rule |
delete_analytics_alert_rule | DELETE /api/v1/analytics/alert-rules/{analytics_alert_rule_id} | Delete an analytics alert rule |
delete_analytics_area | DELETE /api/v1/analytics/areas/{analytics_area_id} | Delete an analytics area |
delete_analytics_line | DELETE /api/v1/analytics/lines/{analytics_line_id} | Delete a counting line |
delete_analytics_zone | DELETE /api/v1/analytics/zones/{analytics_zone_id} | Delete an analytics zone |
delete_automation | DELETE /api/v1/automations/{automation_id} | Delete an automation |
delete_branding_logo | DELETE /api/v1/branding/logo | Remove the server's logo |
delete_camera | DELETE /api/v1/cameras/{camera_id} | Delete a camera |
delete_camera_ai_live_session | DELETE /api/v1/ai-live/sessions/{ai_live_session_id} | Delete an AI Live session |
delete_client | DELETE /api/v1/clients/{client_id} | Remove a vigiora-client |
delete_clip | DELETE /api/v1/clips/{clip_id} | Delete a clip |
delete_face | DELETE /api/v1/faces/{face_id} | Delete a face |
delete_floor_plan | DELETE /api/v1/floor-plans/{floor_plan_id} | Delete a floor plan |
delete_floor_plan_walkthrough | DELETE /api/v1/floor-plans/walkthroughs/{walkthrough_id} | Delete a walk-through |
delete_group | DELETE /api/v1/groups/{group_id} | Delete a group |
delete_guardian_conversation | DELETE /api/v1/guardian/conversations/{conversation_id} | Delete a Guardian conversation |
delete_guardian_entries | POST /api/v1/guardian/entries/actions/delete | Delete Guardian entries in bulk |
delete_guardian_entry | DELETE /api/v1/guardian/entries/{entry_id} | Delete a Guardian entry |
delete_home_assistant_instance | DELETE /api/v1/integrations/home-assistant/instances/{instance_id} | Remove a Home Assistant instance |
delete_home_assistant_trigger | DELETE /api/v1/integrations/home-assistant/triggers/{trigger_id} | Delete a device trigger |
delete_label_alert_rule | DELETE /api/v1/label-alert-rules/{label_alert_rule_id} | Delete a label alert rule |
delete_layout | DELETE /api/v1/layouts/{layout_id} | Delete a layout |
delete_layout_sequence | DELETE /api/v1/layout-sequences/{layout_sequence_id} | Delete a layout sequence |
delete_library_album | DELETE /api/v1/library/albums/{album_id} | Delete an album |
delete_library_folder | POST /api/v1/library/folders/actions/delete | Delete an empty library folder |
delete_library_item | DELETE /api/v1/library/items/{item_id} | Delete a saved item |
delete_memory_fact | DELETE /api/v1/memory/facts/{fact_id} | Forget a remembered fact |
delete_motion_rule | DELETE /api/v1/motion-rules/{motion_rule_id} | Delete a smart-motion rule |
delete_motion_zone | DELETE /api/v1/cameras/{camera_id}/motion-zones/{zone_id} | Remove a motion zone |
delete_output | DELETE /api/v1/outputs/{output_id} | Delete a speaker |
delete_privacy_mask | DELETE /api/v1/cameras/{camera_id}/privacy-masks/{mask_id} | Remove a privacy mask |
delete_ptz_patrol | DELETE /api/v1/cameras/{camera_id}/ptz/patrols/{patrol_id} | Delete a patrol |
delete_ptz_preset | DELETE /api/v1/cameras/{camera_id}/ptz/presets/{preset_token} | Delete a PTZ preset |
delete_recording_cards | POST /api/v1/recordings/cards/actions/delete | Delete whole cards |
delete_reference_frame | DELETE /api/v1/cameras/{camera_id}/reference-frame | Delete a reference frame |
delete_robot_nav_map | DELETE /api/v1/cameras/{camera_id}/robot/nav/map | Forget everything the robot learned |
delete_robot_place | DELETE /api/v1/cameras/{camera_id}/robot/places/{place_id} | Delete a robot place |
delete_room | DELETE /api/v1/rooms/{room_id} | Delete a room |
delete_room_alert_rule | DELETE /api/v1/rooms/{room_id}/alert-rules/{alert_rule_id} | Delete a room Guardian alert rule |
delete_room_inventory | DELETE /api/v1/rooms/{room_id}/inventory | Clear a room's stock list |
delete_site | DELETE /api/v1/sites/{site_id} | Delete a site |
delete_user | DELETE /api/v1/users/{user_id} | Delete a user |
delete_view | DELETE /api/v1/views/{view_id} | Delete an AI view |
delete_webhook | DELETE /api/v1/webhooks/{webhook_id} | Delete a webhook |
detect_camera | POST /api/v1/cameras/actions/detect | Detect a camera's streams |
detect_camera_batch | POST /api/v1/cameras/actions/detect-batch | Detect several cameras with one login |
disable_alert_rule | POST /api/v1/alert-rules/{alert_rule_id}/actions/disable | Disable a Guardian alert rule |
disable_camera | POST /api/v1/cameras/{camera_id}/actions/disable | Disable a camera |
disable_camera_ai | POST /api/v1/cameras/{camera_id}/actions/disable-ai | Switch AI off for a camera |
disable_camera_ai_service | POST /api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/disable | Switch an AI service off for a camera |
disconnect_home_assistant_bridge | POST /api/v1/integrations/home-assistant/bridge/actions/disconnect | Disconnect Home Assistant's devices |
disconnect_home_assistant_instance | POST /api/v1/integrations/home-assistant/instances/{instance_id}/actions/disconnect | Disconnect a Home Assistant instance |
disconnect_loona | POST /api/v1/loona/actions/disconnect | Disconnect from the Loona robot |
dismiss_auto_light_action | DELETE /api/v1/iot/auto-actions/{auto_action_id} | Dismiss an automatic light action |
dismiss_sound | POST /api/v1/sounds/{sound_id}/actions/dismiss | Dismiss a siren that could not be switched off |
drive_loona | POST /api/v1/loona/actions/drive | Drive the Loona robot |
emote_loona | POST /api/v1/loona/actions/emote | Make the Loona robot play an expression |
enable_alert_rule | POST /api/v1/alert-rules/{alert_rule_id}/actions/enable | Enable a Guardian alert rule |
enable_camera | POST /api/v1/cameras/{camera_id}/actions/enable | Enable a camera |
enable_camera_ai | POST /api/v1/cameras/{camera_id}/actions/enable-ai | Switch AI on for a camera |
enable_camera_ai_service | POST /api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/enable | Switch an AI service on for a camera |
expose_home_assistant_zigbee_device | POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/expose | Share a Zigbee device with Vigiora |
expose_io_t_device | POST /api/v1/iot/devices/{iot_device_id}/actions/expose | Share an IoT device with Vigiora |
find_robot_keyboards | POST /api/v1/cameras/{camera_id}/robot/actions/find-keyboards | Find Bluetooth MIDI keyboards with a robot camera |
forget_io_t_device | POST /api/v1/iot/devices/{iot_device_id}/actions/forget | Forget an IoT device |
goto_ptz_preset | POST /api/v1/cameras/{camera_id}/ptz/presets/{preset_token}/actions/goto | Go to a PTZ preset |
goto_robot_place | POST /api/v1/cameras/{camera_id}/robot/places/{place_id}/actions/goto | Send the robot to a place |
import_automation | POST /api/v1/automations/actions/import | Create an automation from a blueprint |
import_config | POST /api/v1/config/import | Import a configuration |
install_addon | POST /api/v1/addons/{addon_id}/install | Install a catalogue add-on |
install_home_assistant | POST /api/v1/integrations/home-assistant/actions/install | Install Home Assistant |
install_system_update | POST /api/v1/system/update/actions/install | Install the staged update |
list_ai_models | POST /api/v1/system/ai-model/actions/list-models | List the models of a model server |
lookup_network_address | GET /api/v1/network/lookup | Find the current IP of a MAC (or the MAC of an IP) |
move_device_to_dhcp | POST /api/v1/network/devices/actions/move-to-dhcp | Move a camera from a conflicting static address to DHCP |
move_ptz | POST /api/v1/cameras/{camera_id}/ptz/actions/move | Move the camera |
move_ptz_in_room | POST /api/v1/rooms/{room_id}/actions/move-ptz | Move a room camera |
patch_motion_zone_settings | PATCH /api/v1/cameras/{camera_id}/motion-zone-settings | Set a camera's motion zone mode |
patch_perception_coach_settings | PATCH /api/v1/agents/perception-coach/settings | Change the Perception Coach settings |
permit_home_assistant_zigbee_join | POST /api/v1/integrations/home-assistant/actions/zigbee-permit-join | Let a new Zigbee device join |
photo_loona | POST /api/v1/loona/actions/photo | Make the Loona robot take a photo |
play_audio_in_room | POST /api/v1/rooms/{room_id}/actions/play-audio | Play audio in a room |
play_robot_melody | POST /api/v1/cameras/{camera_id}/robot/actions/play-melody | Play a melody on a Bluetooth keyboard with a robot camera |
purge_guardian_entries | POST /api/v1/guardian/trash/actions/purge | Permanently delete recently deleted entries |
recompute_guardian_clips | POST /api/v1/guardian/entries/actions/recompute-clips | Re-cut the clips of recent Guardian entries |
recompute_guardian_frames | POST /api/v1/guardian/entries/actions/recompute-frames | Recompute the pictures of recent Guardian entries |
reconnect_loona | POST /api/v1/loona/actions/reconnect | Reconnect to the Loona robot |
refresh_loona | POST /api/v1/loona/actions/refresh | Ask the Loona robot for its state now |
relocate_camera | POST /api/v1/cameras/{camera_id}/actions/relocate | Move a camera to its MAC's current address |
remove_addon | DELETE /api/v1/addons/{addon_id} | Remove an add-on |
remove_home_assistant_zigbee_device | POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/remove | Remove a Zigbee device |
remove_io_t_device | POST /api/v1/iot/devices/{iot_device_id}/actions/remove | Remove a Zigbee device from the network |
rename_face | PATCH /api/v1/faces/{face_id} | Name a face |
replace_floor_plan_items | POST /api/v1/floor-plans/{floor_plan_id}/items/actions/replace | Replace what is placed on a floor plan |
replace_room_inventory | POST /api/v1/rooms/{room_id}/inventory/actions/replace | Replace a room's stock list |
restart_home_assistant | POST /api/v1/integrations/home-assistant/actions/restart | Restart Home Assistant |
resume_ptz_patrol | POST /api/v1/cameras/{camera_id}/ptz/patrol/actions/resume | Resume the patrol |
return_robot_home | POST /api/v1/cameras/{camera_id}/robot/nav/actions/return-home | Send the robot home |
revert_perception_coach | POST /api/v1/cameras/{camera_id}/actions/revert-perception-coach | Restore the human prompt |
revert_room_perception_coach | POST /api/v1/rooms/{room_id}/actions/revert-perception-coach | Restore the human room rules |
revoke_account_session | DELETE /api/v1/account/sessions/{session_id} | Sign a device out |
revoke_analytics_display | DELETE /api/v1/analytics/displays/{analytics_display_id} | Revoke a door display |
rotate_automation_webhook | POST /api/v1/automations/{automation_id}/actions/rotate-webhook | Replace an automation's web address |
rotate_webhook_secret | POST /api/v1/webhooks/{webhook_id}/actions/rotate-secret | Rotate the signing secret |
run_auto_scan | POST /api/v1/network/auto-scan/actions/run | Scan the network for new cameras now |
run_automation | POST /api/v1/automations/{automation_id}/actions/run | Run or test an automation now |
run_diagnostic_fix | POST /api/v1/setup/diagnostics/actions/fix | Run an automatic fix |
save_ptz_preset | POST /api/v1/cameras/{camera_id}/ptz/presets | Save a PTZ preset |
scan_bluetooth | POST /api/v1/bluetooth/actions/scan | Scan for Bluetooth devices now |
scan_robot_bluetooth | POST /api/v1/cameras/{camera_id}/robot/actions/bluetooth-scan | Scan Bluetooth with a robot camera |
send_error_reports | POST /api/v1/system/error-reports/actions/send | Send error reports to Vigiora |
sense_robot | POST /api/v1/cameras/{camera_id}/robot/actions/sense | Scan the room with a robot camera |
set_analytics_occupancy | POST /api/v1/analytics/areas/{analytics_area_id}/actions/set-occupancy | Correct an area's occupancy |
set_camera_clock | POST /api/v1/cameras/{camera_id}/actions/set-clock | Set a camera's clock to the server's |
set_detected_camera_clock | POST /api/v1/cameras/actions/set-clock | Set the clock of a camera being added |
set_home_assistant_entity_access | POST /api/v1/integrations/home-assistant/entities/{entity_id}/actions/set-access | Expose a Home Assistant entity |
set_home_assistant_instance_entity_access | POST /api/v1/integrations/home-assistant/instances/{instance_id}/entities/{entity_id}/actions/set-access | Expose an instance's entity |
set_io_t_device_entity | POST /api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/set | Change a device's control or setting |
set_robot_camera | POST /api/v1/cameras/{camera_id}/robot/actions/camera | Switch a robot camera's picture on or off |
setup_home_assistant_zigbee | POST /api/v1/integrations/home-assistant/actions/setup-zigbee | Set up Zigbee in Home Assistant |
speak_in_room | POST /api/v1/rooms/{room_id}/actions/speak | Speak in a room |
speak_loona | POST /api/v1/loona/actions/speak | Make the Loona robot speak |
speak_on_camera | POST /api/v1/cameras/{camera_id}/actions/speak | Speak through a camera |
start_camera_ai_live_session | POST /api/v1/ai-live/sessions | Start AI Live on a camera |
start_camera_panorama | POST /api/v1/cameras/{camera_id}/panorama | Capture a panorama |
start_camera_siren | POST /api/v1/cameras/{camera_id}/actions/siren | Sound a camera's siren |
start_io_t_light_effect | POST /api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/start-effect | Run a light effect (blink, pulse, strobe) |
start_network_scan | POST /api/v1/network/actions/scan | Scan the local network |
start_ptz_patrol | POST /api/v1/cameras/{camera_id}/ptz/patrol/actions/start | Start a patrol |
start_ptz_patrol_scan | POST /api/v1/cameras/{camera_id}/ptz/patrol-scans | Set a patrol up automatically |
start_robot_nav_learn | POST /api/v1/cameras/{camera_id}/robot/nav/learn/actions/start | Start learning the home |
start_robot_patrol | POST /api/v1/cameras/{camera_id}/robot/patrol/actions/start | Start an AI patrol of a robot camera |
start_room_ai_live | POST /api/v1/rooms/{room_id}/ai-live/actions/start | Start AI Live in a room |
test_ai_model | POST /api/v1/system/ai-model/actions/test | Test the AI model |
test_alert_speaker | POST /api/v1/alert-speaker/actions/test | Test a camera speaker |
test_output | POST /api/v1/outputs/{output_id}/actions/test | Test a speaker |
unexpose_home_assistant_zigbee_device | POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/unexpose | Hide a Zigbee device from Vigiora |
unexpose_io_t_device | POST /api/v1/iot/devices/{iot_device_id}/actions/unexpose | Hide an IoT device from Vigiora |
uninstall_home_assistant | POST /api/v1/integrations/home-assistant/actions/uninstall | Uninstall Home Assistant |
unprotect_recording | POST /api/v1/recordings/{recording_id}/actions/unprotect | Unprotect a recording |
update_addon | POST /api/v1/addons/{addon_id}/update | Update an add-on |
update_agent_settings | PATCH /api/v1/settings/agents | Change AI agent settings |
update_ai_model | PATCH /api/v1/system/ai-model | Choose the AI model |
update_alert_rule | PATCH /api/v1/alert-rules/{alert_rule_id} | Update a Guardian alert rule |
update_alert_speaker_settings | PATCH /api/v1/alert-speaker/settings | Change camera speaker alert settings |
update_analytics_alert_rule | PATCH /api/v1/analytics/alert-rules/{analytics_alert_rule_id} | Update an analytics alert rule |
update_analytics_area | PATCH /api/v1/analytics/areas/{analytics_area_id} | Update an analytics area |
update_analytics_line | PATCH /api/v1/analytics/lines/{analytics_line_id} | Update a counting line |
update_analytics_zone | PATCH /api/v1/analytics/zones/{analytics_zone_id} | Update an analytics zone |
update_auto_scan | PATCH /api/v1/network/auto-scan | Turn automatic network scanning on or off |
update_automation | PATCH /api/v1/automations/{automation_id} | Change an automation |
update_branding | PATCH /api/v1/branding | Change the server's name, accent colour or Powered by line |
update_camera | PATCH /api/v1/cameras/{camera_id} | Update a camera |
update_camera_ai_service | PATCH /api/v1/cameras/{camera_id}/ai-services/{ai_service_id} | Change a camera's AI service settings |
update_camera_analytics | PATCH /api/v1/cameras/{camera_id}/analytics | Update a camera's analytics settings |
update_camera_clock | PATCH /api/v1/cameras/{camera_id}/clock | Set the time zone a camera's clock should be in |
update_client | PATCH /api/v1/clients/{client_id} | Update a vigiora-client |
update_error_report_settings | PATCH /api/v1/system/error-reports/settings | Change whether error reports are sent |
update_floor_plan | PATCH /api/v1/floor-plans/{floor_plan_id} | Update a floor plan |
update_group | PATCH /api/v1/groups/{group_id} | Update a group |
update_guardian_clip_settings | PATCH /api/v1/guardian/clips/settings | Change the Guardian clip settings |
update_guardian_trash_settings | PATCH /api/v1/guardian/trash/settings | Change the Recently deleted settings |
update_health_settings | PATCH /api/v1/system/health/settings | Change the health check settings |
update_home_assistant | POST /api/v1/integrations/home-assistant/actions/update | Update Home Assistant |
update_home_assistant_device | PATCH /api/v1/integrations/home-assistant/devices/{entity_id} | Link a device to cameras and rooms |
update_home_assistant_instance | PATCH /api/v1/integrations/home-assistant/instances/{instance_id} | Rename, enable or disable a Home Assistant instance |
update_home_assistant_integration | POST /api/v1/integrations/home-assistant/actions/update-integration | Update the Vigiora integration in Home Assistant |
update_home_assistant_room_signals | PATCH /api/v1/integrations/home-assistant/room-signals/{room_id} | Set a room's devices |
update_home_assistant_rule_actions | PATCH /api/v1/integrations/home-assistant/rule-actions/{alert_rule_id} | Set an alert rule's device actions |
update_home_assistant_trigger | PATCH /api/v1/integrations/home-assistant/triggers/{trigger_id} | Update a device trigger |
update_io_t_device | PATCH /api/v1/iot/devices/{iot_device_id} | Change an IoT devices settings |
update_label_alert_rule | PATCH /api/v1/label-alert-rules/{label_alert_rule_id} | Update a label alert rule |
update_line_integration | PATCH /api/v1/integrations/line | Set up LINE notifications |
update_loona_settings | PATCH /api/v1/loona/settings | Change the Loona settings |
update_memory_fact | PATCH /api/v1/memory/facts/{fact_id} | Correct a remembered fact |
update_motion_rule | PATCH /api/v1/motion-rules/{motion_rule_id} | Update a smart-motion rule |
update_motion_zone | PATCH /api/v1/cameras/{camera_id}/motion-zones/{zone_id} | Rename or reshape a motion zone |
update_mqtt_integration | PATCH /api/v1/integrations/mqtt | Set up the MQTT integration |
update_output | PATCH /api/v1/outputs/{output_id} | Update a speaker |
update_privacy_mask | PATCH /api/v1/cameras/{camera_id}/privacy-masks/{mask_id} | Rename or reshape a privacy mask |
update_ptz_preset | PATCH /api/v1/cameras/{camera_id}/ptz/presets/{preset_token} | Rename or move a PTZ preset |
update_robot_nav_settings | PATCH /api/v1/cameras/{camera_id}/robot/nav/settings | Change robot navigation settings |
update_room | PATCH /api/v1/rooms/{room_id} | Update a room |
update_room_alert_rule | PATCH /api/v1/rooms/{room_id}/alert-rules/{alert_rule_id} | Update a room Guardian alert rule |
update_room_outputs | PATCH /api/v1/rooms/{room_id}/outputs | Set a room's speakers |
update_settings | PATCH /api/v1/settings | Change server settings |
update_site | PATCH /api/v1/sites/{site_id} | Update a site |
update_telegram_integration | PATCH /api/v1/integrations/telegram | Set up Telegram notifications |
update_user | PATCH /api/v1/users/{user_id} | Change a user |
update_webhook | PATCH /api/v1/webhooks/{webhook_id} | Update a webhook |
upload_branding_logo | PUT /api/v1/branding/logo | Upload the server's logo |
GET /api/v1/agent-policy も、confirm_operations でこの一覧を返します。
仕組み#
Human in the loop は、MCP エンドポイントで、ツールの呼び出しごとにサーバーが適用します。
プロンプトを表示できるアプリの場合#
アプリが MCP のエリシテーション(elicitation)に対応していれば、Vigiora が直接あなたに確認します。アプリには Vigiora が書いたプロンプトが表示されます。たとえば次のとおりです。
Vigiora asks for your approval: move camera "Entrance" (#5) left for 2.5 s. Requested by an app calling itself "Claude". Allow it?- 「Allow」で操作が実行されます。「Deny」を選ぶかプロンプトを閉じると取り消され、エージェントにはエラー
user_declinedが返ります。 - エージェントがあなたの代わりに答えたり、プロンプトを飛ばしたりすることはできません。あなたの答えはこの操作だけに結び付けられ、10 分で期限切れになります。
- 先に Vigiora 自身の文が表示されます。アプリやユーザーが付けた名前(アプリ名、カメラ名、ユーザー名)は引用符で囲まれ、短く切り詰められるので、Vigiora になりすますことはできません。
- 変更の場合は、項目と新しい値が一覧表示されます(例:
role → "admin", enabled → off)。パスワードとシークレットは「(new value hidden)」と表示され、Web アドレスはログイン情報を除いて表示されます。
これには、MCP プロトコル 2026-07-28 以降を使うアプリが必要です。
それ以外のアプリの場合#
エリシテーションに対応していないアプリでは、Vigiora のプロンプトを表示できません。その場合は次のようになります。
- ツールはエラー
confirmation_requiredを返します。details.actionに操作の内容がわかりやすく書かれ、details.retry_withは{"confirm": true}です。 - エージェントがその操作を示し、チャットであなたに確認します。
- あなたが同意した場合にだけ、エージェントは同じ引数に
confirm: trueを付けて同じツールを呼び直します。
{
"http_status": 428,
"error": {
"code": "confirmation_required",
"message": "Human in the loop is on: ask the user to approve this action (move camera \"Entrance\" (#5) left for 2.5 s). Only if they approve, call move_ptz again with the same arguments and confirm: true.",
"details": { "action": "move camera \"Entrance\" (#5) left for 2.5 s", "retry_with": { "confirm": true } }
}
}アプリがエリシテーションに対応している場合、confirm: true を付けてもプロンプトは飛ばせません。Human in the loop がオフなら、ツールはすぐに実行され、confirm は無視されます。
REST は影響を受けません#
/api/v1 への通常の REST 呼び出しには確認は求められず、confirmation_required が返ることもありません。confirm フィールドを含む REST のボディは拒否されます(400 validation_error)。Human in the loop は、MCP を使う AI エージェントのための仕組みです。
制限#
Human in the loop は安全策であり、サンドボックスではありません。
- サーバーが信頼できるのは、アプリが申告する内容だけです。 すべてのプロンプトを自動で承認するアプリ、エリシテーションを申告しないアプリ、2026-07-28 より前のプロトコルを使うアプリには代わりに
confirmation_requiredが返り、その場合はエージェント自身がconfirm: trueであなたの答えを伝えます。エリシテーションのほうが強い方式です。答えるのはモデルではなく、あなたです。 - 確認は操作ごとです。 リスクのあるツールを呼ぶたびに確認され、承認はその 1 回の呼び出しにだけ有効です。
- アクセスを制限するものではありません。 エージェントにできることを制限するには、必要なスコープだけを持つキー、または「Read only」のコネクタを使ってください。認証とスコープをご覧ください。
エージェントからポリシーを確認する#
どの認証情報でも、スコープなしで自分のポリシーを読めます。
curl -s https://yourname.vigiora.com/api/v1/agent-policy \
-H "Authorization: Bearer vgk_xxxxxxxx_xxxxxxxxxxxxxxxx"{
"human_in_the_loop": true,
"source": "server",
"override": "inherit",
"server_human_in_the_loop": true,
"confirm_operations": ["addDetectedCameras", "bulkUpdateCameras", "createAlert", "…"],
"note": "Human in the loop is ON for this credential: AI agents must get the user's approval before the operations in confirm_operations. …"
}| フィールド | 意味 |
|---|---|
human_in_the_loop | この認証情報を使うエージェントが先に確認しなければならないか。 |
source | 何で決まったか。server(サーバーの設定)、api_key または connected_app(この認証情報自身の選択)。 |
override | このキーまたはアプリの選択。inherit、on、off。 |
server_human_in_the_loop | サーバーの設定。 |
confirm_operations | オンの間に承認が必要な operationId。MCP のツール名は、同じ名前の snake_case です。 |
note | エージェントが従うための、ポリシーを 1 文で表したもの。 |
MCP では、同じ内容を get_agent_policy ツールで取得できます。また、エージェントが接続したときにサーバーが送る指示にも、Human in the loop がオンかどうかが含まれています。Vigiora のスキルは、まずこれを確認し、オンのときだけ確認するようエージェントに指示しています。
管理者は API でもサーバーの設定を読み書きできます。GET と PATCH /api/v1/settings/agents(settings:read、settings:write。Human in the loop がオンの間は、この PATCH 自体にも承認が必要です)。ユーザーは PATCH /api/v1/api-keys/{key_id} に {"human_in_the_loop": "on"} を送って、自分のキーの選択を変更します(inherit、on、off。サインインしたユーザーのみ)。
関連ページ#
- MCP サーバー:claude.ai、ChatGPT、Claude Code などを接続します。
- API キー
- AI コーディングエージェントで Vigiora を使う:スキル。
- API リファレンス:承認が必要な操作には、その旨が書かれています。