Microsoft Edge · Arazzo Workflow

Microsoft Edge Find And Close Target

Version 1.0.0

List debuggable targets, branch on whether any exist, and close the first target.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub BrowserChromiumDeveloper ToolsEdgeExtensionsMicrosoftProgressive Web AppsWeb DevelopmentWebviewArazzoWorkflows

Provider

microsoft-edge

Workflows

find-and-close-target
List targets and close the first one if any exist.
Lists debuggable targets and, when at least one is present, closes the first target; otherwise the workflow ends without closing anything.
2 steps inputs: placeholder outputs: closeResult, firstTargetId
1
listTargets
Return all debuggable targets including pages, service workers, and extensions, capturing the first target's identifier and type.
2
closeTarget
Close the first debuggable target returned by the list call.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Edge Find And Close Target
  summary: List debuggable targets, branch on whether any exist, and close the first target.
  description: >-
    A DevTools Protocol cleanup flow against a local Microsoft Edge debugging
    endpoint. The workflow lists all debuggable targets, then branches on the
    result: when at least one target is present it closes the first target,
    otherwise it ends without acting. This is useful for tearing down a tab left
    open by a prior automation run. The DevTools HTTP API requires no
    authentication, so no Authorization header is sent. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: pagesApi
  url: ../openapi/microsoft-edge-pages-api-openapi.yml
  type: openapi
- name: targetsApi
  url: ../openapi/microsoft-edge-targets-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-and-close-target
  summary: List targets and close the first one if any exist.
  description: >-
    Lists debuggable targets and, when at least one is present, closes the first
    target; otherwise the workflow ends without closing anything.
  inputs:
    type: object
    properties:
      placeholder:
        type: string
        description: >-
          Unused input placeholder; the list call takes no parameters, so this
          workflow requires no operational inputs.
  steps:
  - stepId: listTargets
    description: >-
      Return all debuggable targets including pages, service workers, and
      extensions, capturing the first target's identifier and type.
    operationId: listTargets
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstTargetId: $response.body#/0/id
      firstTargetType: $response.body#/0/type
    onSuccess:
    - name: targetFound
      type: goto
      stepId: closeTarget
      criteria:
      - context: $response.body
        condition: $.length > 0
        type: jsonpath
    - name: noTargets
      type: end
      criteria:
      - context: $response.body
        condition: $.length == 0
        type: jsonpath
  - stepId: closeTarget
    description: >-
      Close the first debuggable target returned by the list call.
    operationId: closeTarget
    parameters:
    - name: targetId
      in: path
      value: $steps.listTargets.outputs.firstTargetId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      closeResult: $response.body
  outputs:
    firstTargetId: $steps.listTargets.outputs.firstTargetId
    closeResult: $steps.closeTarget.outputs.closeResult

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-edge-find-and-close-target-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.