On this page
Sommatic Docs
Open portal

Open File/URL

Open a file or URL in default system application.

View as Markdown
Open in
Input and output Available io.desktop.open Version 1.0.0 Execution: async

Opens a URL or file with the default application, or with a named application, on the machine that runs the worker.

How it works

  1. Resolves the config. target and app fall back to the same keys of the incoming payload.
  2. Fails through error when target is empty.
  3. Opens target with the system default handler, or with the application named in app.
  4. Returns { opened: <target> } through out once the open command was launched.

In a workflow

The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.

{
  "node_id": "node-open-report",
  "label": "Open report",
  "operator_slug": "io.desktop.open",
  "operator_version": "1.0.0",
  "config": {
    "target": "https://app.example.com/reports/{{ $json.period }}"
  }
}

Configuration

target string Required

URL or File Path

app string Optional

Optional specific app name

Output ports

out default

The open command was launched for target.

Data
{
  "opened": "https://app.example.com/reports/2026-11"
}
error

target is missing or the open command could not be launched.

Data
{
  "error": "target is required"
}

In expressions

What a later node can read from this node's output with $("Open File/URL").item.json.<path> (write your node's label instead of Open File/URL). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.

ExpressionEditorWorker
$("Open File/URL").item.json.openedstring= "https://app.example.com/reports/2026-11"Target opened

Errors

Message Port Cause and fix
target is required error Neither the config nor the incoming payload has a target. Set a URL or an absolute file path.
<open command error message> error The host could not launch the handler or the named app. Check that the application exists on that machine.

Input contract

target string Required
app string Optional

Output contract

opened string Optional

Target opened

Contracts (JSON Schema)

The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.

{
  "slug": "io.desktop.open",
  "name": "Open File/URL",
  "category": "io",
  "version": "1.0.0",
  "description": "Open a file or URL in default system application.",
  "capabilities": [
    "desktop",
    "open",
    "launch"
  ],
  "config_schema": {
    "type": "object",
    "properties": {
      "target": {
        "type": "string",
        "description": "URL or File Path"
      },
      "app": {
        "type": "string",
        "description": "Optional specific app name"
      }
    },
    "required": [
      "target"
    ]
  },
  "input_contract_schema": {
    "type": "object",
    "properties": {
      "target": {
        "type": "string"
      },
      "app": {
        "type": "string"
      }
    },
    "required": [
      "target"
    ]
  },
  "output_contract_schema": {
    "type": "object",
    "properties": {
      "opened": {
        "type": "string",
        "description": "Target opened"
      }
    }
  },
  "ports": [
    {
      "port_id": "out",
      "label": "Opened",
      "description": "Target opened successfully",
      "is_default": true,
      "supports_condition": true
    },
    {
      "port_id": "error",
      "label": "Error",
      "description": "Failed to open target",
      "is_default": false,
      "supports_condition": false
    }
  ],
  "execution_mode": "async",
  "required_resources": [],
  "compatible_worker_pools": [
    "desktop-agent"
  ],
  "tags": [
    "desktop",
    "utility"
  ],
  "is_stateful": false,
  "publisher": {
    "identity": "org_link_loom",
    "profile": {
      "name": "Link Loom",
      "verified": true,
      "url": "https://me.veripass.com/link-loom",
      "logo_url": null
    }
  }
}

Execution

Execution
async
Stateful
No
Capabilities
desktopopenlaunch
Tags
desktoputility

Notes and limits

  • out means the open command was launched, not that the application finished loading the target. A file path that does not exist may still reach out, depending on the platform handler.
  • The target opens on the host that runs the orchestrator worker, not on the user's device.

Reviewed against the orchestrator code · 31e874b · 2026-11-26

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs