Developer Tools

Roboflow MCP

Manage Roboflow computer-vision projects, datasets, images, annotation, model training, deployment, inference, workflows and devices through Roboflow's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Agent chat

    Ask the Roboflow in-app agent to build or edit a Workflow, or answer a Roboflow question. Use this for ALL natural-language Workflow creation and edits, including simple goals such as "detect cups". The agent uses Roboflow's shared block knowledge, build/edit tools and validator before saving. Send the user's goal, explicit model choices and existing Workflow ID when editing. For camera previews, request class filtering and a named annotated image output. Do not compose the Workflow JSON yourself or fall back to raw workflows_create/workflows_update after an agent error. The agent may ask clarifying questions. Relay them and continue with the returned conversation_id. mode="plan" only plans; mode="agent" builds. A long turn returns status="running" and run_id. Poll agent_chat_result until terminal; never resend the message to start a duplicate build. Find past chats with agent_conversations_list/agent_conversation_get. If the client times out before receiving a run_id, the build may still finish. Recover it from those conversation tools before retrying. In hosts with on-demand tool loading, load a referenced tool before calling it, including agent_chat_result and streams_preview_status. On completion, text is the reply; workflows contains each created/edited Workflow's id, name, url (slug), app_url and exact validated specification. Use app_url for UI links. If workflows is empty, follow the reply instead of claiming a build succeeded. The agent does not run inference. New Workflows are saved and runnable. Edits are saved as drafts. For a live camera, pass the returned id and unchanged specification to streams_preview, with the declared image output and required parameters; read current session status after building. This tests the draft without publishing it. For authorized static draft tests use workflow_specs_run. workflows_run executes the published version by slug; publish an edit with agent_workflow_publish only when the user authorizes publication.

  • Annotation batches delete

    Delete a batch. By default its images move to unassigned and remain accessible.

  • Annotation jobs delete annotations

    Delete the project's annotation data for every image assigned to a job.

  • Annotation jobs move to unassigned

    Remove a job while moving its images to an unassigned batch so they remain accessible.

  • Batch processing asset library job create

    Queue a durable Workflow run over an Asset Library selection. The platform owns selection authorization, entitlement and billing, workflow compatibility, staging, and job registration: it stages your selection into a Data Staging batch for you (for files you stage yourself, use ``batch_processing_run`` or ``batch_processing_staged_job_start``). The response is a 202 receipt: poll ``batch_processing_asset_library_task_get`` with its taskId until terminal, then use ``batch_processing_job_get`` with jobId.

  • Batch processing job restart

    Restart a failed or aborted job, optionally overriding compute parameters. Consumes credits like a fresh run.

  • Batch processing run

    Master tool: drive a batch processing run over a staging batch you name (stage -> ingest -> job -> results) through repeated resumable calls. For Asset Library selections, use batch_processing_asset_library_job_create instead. Every batch processing job runs a Workflow over a Data Staging batch; the input paths differ only in who fills it. Files already in Roboflow (Asset Library): batch_processing_asset_library_job_create, and the platform selects and stages them for you. External files (local disk, cloud bucket, references file) when you only want the outputs: stage them with the inference-cli and drive the run with batch_processing_run (nothing is imported; the classic ETL shape). External files you want INSIDE Roboflow for labeling/training/curation: that is an import, not a job; mirror them with a datasource (bucket mirror, connect_cloud_storage), then run an Asset Library job over the imported images if you also want bulk predictions (the classic ELT shape). An On Sync automation can also run a Workflow after the mirror; with upload screening it waits for eligible new-image verdicts and search indexing, skips waiting for held overwrites, and can fail when no images are admitted. Mirror completion alone does not make held images available as Sources. Each call reads current state, advances what it can, and returns immediately: 'staging_required' (batch missing; response contains the inference-cli commands to run), 'ingest_in_progress', 'ingest_failed', 'running' (job started or working; includes stage progress), 'completed' (includes result files with download URLs), or 'failed' (includes logs). This server never sleeps on your behalf; non-terminal responses carry retryAfterSeconds, so wait that long and call again with the returned job_id to resume; omit optional creation settings and the stored paid-job definition remains authoritative. The job is started under an id derived from (workspace, batch, workflow), so retrying after a lost response re-registers the same job rather than starting a second one. Starting the job consumes credits. For the advanced knobs (max_runtime_seconds, max_parallel_tasks, max_image_failure_rate, image_outputs_to_save) use batch_processing_staged_job_start instead.

  • Batch processing staged job start

    Start a batch processing job: run a Workflow over a staged batch. This launches asynchronous compute and consumes credits. The batch must be staged first (see ``batch_processing_guide``) and fully ingested (``batch_processing_staging_batch_get``). Returns ``{jobId, ...}``; poll ``batch_processing_job_get`` and fetch results from the ``<job-id>-export`` staging batch when it finishes. Re-running with the same job_id and identical settings is idempotent; a divergent definition is rejected (409).

  • Cloud streams job create

    Run a Workflow on the workspace's own cloud camera. Jobs incur charges and can execute Workflow sinks. Start with the connected OAuth account or a workspace API key; the user's current access continues to govern OAuth jobs. Never ask users to paste a key or secret into chat. A new start runs alongside existing jobs by default. To switch the Workflow on a camera, set replace_deployments only when the user explicitly wants to replace its other deployments. The platform starts the new job first, then requests stops of all older deployments on that camera; they may briefly run and bill together. Check replacedJobIds, stillRunningJobIds, otherDeploymentJobIds and replacementIncomplete, then poll job status. Existing input values are not copied; specify non-secret inputs needed by the new job. Retrying the same request and idempotency key completes an interrupted replace.

  • Cloud streams shared job create

    Run a saved Workflow on a shared source. Jobs, execution credentials, results and charges belong to the connected workspace. Starting jobs on shared sources requires an API key with video-inference-job:read, video-inference-job:create, workflow:read and model:infer; OAuth connections can start jobs on their own workspace's cameras instead. Withdrawal stops running jobs, but past job history remains readable.

  • Datasource delete

    Delete a datasource configuration. Does not delete already-mirrored images.

  • Device groups delete

    Delete a fleet device group; its devices are kept. Requires ``device:update``.

  • Devices delete

    Delete a device and revoke its api_keys. Cannot be undone. Requires the ``device:update`` scope on a workspace credential; a device's own api_key cannot delete it (403).

  • Devices send command

    Queue a command on the device's command channel. Requires the ``device:update`` scope. A returned ``id`` means a command was queued for the device's next poll. Stream config commands may instead return ``{id: null, staged: true}``; inspect ``devices_get_config.configProposal`` before claiming a live change. Camera-capture commands (``livesample``, ``trigger_stream``, and ``cloud_fallback`` starts) can return 403 with ``error_type=CAMERA_STREAM_DISABLED`` when workspace, device, or stream settings disable viewing. Other commands, including capture stops, remain available. Queued capture commands are checked again before device delivery, so a later opt-out can prevent execution. For a connectivity check from the device, use ``action='network_probe'`` and ``data`` with ``kind`` (``ping``, ``dns``, ``tcp`` or ``http``) and ``target`` (IP address or hostname up to 253 characters, with labels of at most 63 characters; not a URL or zone-scoped IP). Optional whole-number ``count`` is 1-10 and ``timeout_s`` is 1-15. ``port`` is 1-65535, required for TCP, optional for HTTP, and invalid for ping or DNS. ``scheme`` is ``http`` or ``https`` for HTTP only. Other fields are rejected. The returned ``id`` identifies the queued command, not a completed probe. Results arrive asynchronously in device monitoring under ``network_probes[id]``.

  • Devices streams delete

    Remove a stream's state document. Requires the ``device:update`` scope. Remove the stream from the device config too (``devices_update_config``), or the device recreates it.

  • Devices streams terminate

    Remove a stream from a device permanently. Requires the ``device:update`` scope. On V2 devices the stream is removed from the device config at once (``status: "applied"``), or the removal is held for production approval (``status: "staged"``). Otherwise a ``terminate_stream`` command is queued, and the device targets the pipeline by ``pipeline_id``. To stop processing temporarily use ``devices_streams_pause``. ``devices_streams_delete`` removes only monitoring state, so a configured stream comes back after it.

  • Devices streams trigger

    Request one Workflow execution on a trigger-driven device stream. The platform resolves the Workflow and workspace from the stream or device config. Camera capture must be allowed by workspace, device, or stream settings. A privacy refusal returns 403 with ``error_type=CAMERA_STREAM_DISABLED``. Queued capture commands are checked again before delivery, so a later opt-out can prevent execution. The Workflow may write to external integrations, so do not retry automatically. Returns ``{id}`` for the queued command, not inference output or proof of completion. Follow up with ``devices_get_events`` and ``devices_streams_get`` for status. Undelivered commands expire after 5 minutes.

  • Preview rerun

    Run a preview again from its rerunArguments, with the classes the user changed.

  • Projects delete

    Delete a project, moving it to the workspace Trash. This is a soft delete: the project (including its versions, images, and models) stays in the Trash for 30 days and can be restored with ``trash_restore_project`` using the project's document id from the delete response or ``trash_list``. After 30 days it is permanently removed. Active trainings on the project are cancelled.

  • Streams preview

    Start or replace a live annotated Workflow preview on the session's camera. Use this when a connected camera should show a selected or newly prepared Workflow. Updates the existing streams_connect card; it does not open another app. Reuse the session and workspace from that card's model context. Pass the session as stream_session_id (session_id remains a supported alias). Do not call streams_connect again unless the user needs to reopen the card or its session has expired. For a detection goal or Workflow change, use agent_chat to build and validate through the Roboflow in-app agent. Request class filtering and an annotated image output. Poll agent_chat_result when running, then pass the returned Workflow ID and exact specification unchanged. Read current session status after building. An existing saved Workflow that already fits can be read and previewed directly. This tool pins the supplied specification and spends credits; it does not publish or edit the Workflow. Agent edits can be previewed as drafts without publishing. Sink blocks are disabled; unsupported side effects are refused. Never read settings from a Workflow editor. A returned starting/stopping status is pending, not success: use streams_preview_status. If retry is needed, reuse the exact request_id and arguments; do not create a second request while outcome is uncertain.

Page 1 / 2Next