--- title: "Results and safety" description: "What Darkgrade's MCP tools return (JSON, pictures, errors), which tools change the camera, how your AI app knows to ask first, and how to undo a change." url: https://darkgrade.com/docs/ai/results last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Results and safety > What Darkgrade's MCP tools return (JSON, pictures, errors), which tools change the camera, how your AI app knows to ask first, and how to undo a change. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. Every tool answers with what the camera did, [read back](https://darkgrade.com/docs/overview/glossary.md#read-back) from the camera. This page covers what comes back, which tools change something, and how to keep Claude from acting before you want it to. ## What a tool returns A tool result is text, and for some tools a picture. - **Text.** The operation's result as JSON: the value read back after a change, the list of files, the battery level. It is the same result [Slate](https://darkgrade.com/docs/slate/getting_started/camera.md) and the [CLI](https://darkgrade.com/docs/cli/output.md)'s `--json` give, described under **What you get back** on each [Functionality](https://darkgrade.com/docs/functionality/connection.md) page. A setting change answers with the value the camera read back, so Claude reports what the camera is set to, not what it asked for. - **Picture.** A tool that produces an image attaches it, so a model that can see looks at it directly. | Tool | Picture | | - | - | | [`camera_get_live_view_frame`](https://darkgrade.com/docs/functionality/live-view.md#read-a-live-view-frame) | The current live-view picture, a JPEG | | [`camera_get_media_preview`](https://darkgrade.com/docs/functionality/media.md#preview-a-file) | A JPEG of a photo or clip on the card | | [`get_frame`](https://darkgrade.com/docs/ai/studio-tools.md#get_frame) (Studio) | The live picture, at most 768 pixels wide | | `estimate_depth`, `segment_objects` ([Studio, Developer Mode](https://darkgrade.com/docs/ai/studio-tools.md#developer-mode-tools)) | A depth map, or the picture with the found objects outlined | A photo you take is not attached. To see it, ask for its preview. ### Files: photos and downloads File bytes never travel inside the JSON. Where a result holds a file, the JSON has a name and the size instead: ```json { "file": "DSC01234.JPG", "bytes": 8123456 } ``` What happens to the file itself depends on what serves the tools: - **Studio** reads it from the camera and does not keep it. A photo is still on the card, unless you asked for the `computerOnly` destination. - **`npx darkgrade mcp`** saves it in `Pictures/Darkgrade` in your home folder, or the folder given with [`--output`](https://darkgrade.com/docs/cli/mcp.md#flags), with the path in the result's `files` list. Nothing is overwritten. - **Your own process** saves it wherever your [`saveFile`](https://darkgrade.com/docs/ai/server.md#save-photos-and-downloads) puts it, with the path in the result's `files` list. Without `saveFile`, it is not kept. Served by `darkgrade mcp` or your own process, the text is `{ "result": …, "files": [ … ] }`: the result, and one entry per file with its `role` (`photo`, `frame`, `overlay`, `preview` or `download`), `name`, `mimeType`, `bytes` and, when saved, `path`. Ask `camera_get_live_view_frame` for `overlay` and your own process also attaches the camera's on-screen display as a second picture. Studio attaches the frame only. ## Which tools change the camera Each tool tells your AI app whether it only reads. Apps use this to decide when to ask you: Claude Code and Claude Desktop ask before a tool runs for the first time, and let you allow it once or from then on. | Kind | Tools | | - | - | | **Only read** | Every `camera_get_…` tool, [`camera_list_media`](https://darkgrade.com/docs/functionality/media.md#list-photos-and-clips), [`camera_download_media`](https://darkgrade.com/docs/functionality/media.md#download-a-file), and Studio's [`analyze_frame`](https://darkgrade.com/docs/ai/studio-tools.md#analyze_frame), `get_frame` and [`get_shooting_guidance`](https://darkgrade.com/docs/ai/studio-tools.md#get_shooting_guidance) | | **Change the camera** | Every `camera_set_…` tool, [`camera_take_photo`](https://darkgrade.com/docs/functionality/photos.md#take-a-photo), [`camera_start_recording`](https://darkgrade.com/docs/functionality/video.md#start-recording), [`camera_stop_recording`](https://darkgrade.com/docs/functionality/video.md#stop-recording), [`camera_autofocus`](https://darkgrade.com/docs/functionality/focus.md#autofocus), [`camera_reset_focus_point`](https://darkgrade.com/docs/functionality/focus.md#reset-the-focus-point), [`camera_nudge_focus`](https://darkgrade.com/docs/functionality/focus.md#nudge-manual-focus), [`camera_zoom_to`](https://darkgrade.com/docs/functionality/zoom.md#zoom-to-a-focal-length), [`camera_start_zoom`](https://darkgrade.com/docs/functionality/zoom.md#start-zooming), [`camera_stop_zoom`](https://darkgrade.com/docs/functionality/zoom.md#stop-zooming) | | **Change the camera** (Studio's own) | [`adjust_exposure`](https://darkgrade.com/docs/ai/studio-tools.md#adjust_exposure), [`adjust_color_temperature`](https://darkgrade.com/docs/ai/studio-tools.md#adjust_color_temperature), [`undo_last_change`](https://darkgrade.com/docs/ai/studio-tools.md#undo_last_change), [`set_live_view`](https://darkgrade.com/docs/ai/studio-tools.md#set_live_view), [`set_camera_display_overlay`](https://darkgrade.com/docs/ai/studio-tools.md#set_camera_display_overlay) | | **Change Studio's display only** | [`set_studio_view`](https://darkgrade.com/docs/ai/studio-tools.md#set_studio_view) | No tool deletes files from the card or formats it. ### The exact annotations MCP tools carry hints, called annotations, that an app can read. - **`readOnlyHint`** is `true` for the tools that only read. - **`openWorldHint`** is `false` for every tool. - **`destructiveHint`** and **`idempotentHint`** are not set by Studio. Your own process sets `destructiveHint` to `true` for `camera_take_photo` and `camera_start_recording` and `false` for the rest, and `idempotentHint` to `true` for the tools that only read. An app that follows the MCP specification treats a tool with no `destructiveHint` as possibly destructive, so through Studio every tool that changes something may prompt, `set_studio_view` included. Studio's Developer Mode tools (`estimate_depth`, `segment_objects`) and its [performance tools](https://darkgrade.com/docs/ai/studio-tools.md#performance-tools) (`get_performance`, `trace_performance`) only read. On your own process, `camera_discover` only reads, and `camera_connect`, `camera_disconnect`, `camera_recover` and `camera_run_benchmark` count as changes. ## Keep control of the shoot - **Approve as you go.** Leave your app's permission prompts on for the tools that change the camera until you trust the session. Allowing the tools that only read is safe at any time. - **Say what is off limits.** “Don't take a photo or record until I say” at the start of a conversation holds for the conversation. Studio's instructions already tell the model to shoot, record or download only when you asked. - **Watch Studio.** Every change shows in Studio's window as it happens, and you can change a setting there yourself at any time. Tell Claude when you do, so it reads the camera again. - **Undo.** Through Studio, ask Claude to “undo that”. [`undo_last_change`](https://darkgrade.com/docs/ai/studio-tools.md#undo_last_change) puts back the most recent setting change Claude made, and asking again steps further back, through the last 50. It doesn't undo photos, recordings, or a colour temperature or audio level that Claude set to an exact number. - **Turn it off.** Switch **Let AI apps control the camera** off in Studio's Settings and every tool stops answering. ## How commands are sent - **Once.** A command that changes the camera is sent one time. If the camera doesn't confirm it, the tool reports that the outcome is unknown and does not send it again, so a retry can't take a second photo by accident. Ask Claude to read the camera before trying again. - **In turn.** Calls to one camera take turns, including the ones you make in Studio's window. `camera_stop_recording` and `camera_stop_zoom` skip the queue, so stopping never waits. - **Checked first.** A setting accepts only a value the camera offers now. Through Studio, a loose value such as `"daylight"` or `"manual"` is matched to the camera's own spelling (`"Daylight"`, `"MF"`). ## When a tool fails A failed tool returns an error with a sentence saying why. Claude reads it and usually explains it or corrects itself. | Failure | What happened, and what to do | | - | - | | The camera can't do it right now | Nothing was sent: the operation isn't available on this camera or in its current mode. Ask Claude what [`camera_get_capabilities`](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) reports for that operation. It gives the reason. | | The camera refused, or the value isn't offered | Nothing changed. Ask for the setting's choices and pick one. | | The outcome is unknown | The command was sent, not confirmed, and not resent. Check the camera or Studio, then decide whether to retry. | | Studio can't run it now | No camera is connected, the camera is reading its card, or live view is off. The sentence says which. | [Troubleshooting](https://darkgrade.com/docs/ai/troubleshooting.md#a-tool-fails) lists each error message and its fix. A server you run yourself can also answer that the camera is busy. That means wait and try again, not reset USB or power. [A busy camera](https://darkgrade.com/docs/slate/guides/runtime.md#a-busy-camera) has the fields an app can read. ## Next > [card] [What to ask](https://darkgrade.com/docs/ai/prompts.md) > > Prompts by task, and what Claude does for each. > [card] [Troubleshooting](https://darkgrade.com/docs/ai/troubleshooting.md) > > The app can't connect, or a tool keeps failing.