{
  "version": "urirun.bindings.v2",
  "bindings": {
    "say://local/echo/message": {
      "kind": "command",
      "adapter": "argv-template",
      "inputSchema": {
        "type": "object",
        "required": ["text"],
        "properties": {
          "text": { "type": "string", "default": "hello from v2" }
        },
        "additionalProperties": false
      },
      "argv": ["$PYTHON", "-c", "import sys; print(sys.argv[1])", "{text}"],
      "meta": {
        "label": "Echo argv",
        "payload": { "text": "hello from v2" }
      }
    },
    "shell://local/echo/message": {
      "kind": "shell",
      "adapter": "shell-template",
      "inputSchema": {
        "type": "object",
        "required": ["text"],
        "properties": {
          "text": { "type": "string", "default": "hello shell" }
        },
        "additionalProperties": false
      },
      "shell": "printf '%s\\n' '{text}'",
      "meta": {
        "label": "Echo shell",
        "payload": { "text": "hello shell" }
      }
    },
    "media://local/video/transcode": {
      "kind": "command",
      "adapter": "argv-template",
      "inputSchema": {
        "type": "object",
        "required": ["input", "output"],
        "properties": {
          "input": { "type": "string", "default": "a.mp4" },
          "output": { "type": "string", "default": "b.mp4" },
          "width": { "type": "integer", "default": 1280 },
          "height": { "type": "integer", "default": 720 }
        },
        "additionalProperties": false
      },
      "argv": ["ffmpeg", "-i", "{input}", "-vf", "scale={width}:{height}", "{output}"],
      "meta": {
        "label": "Transcode",
        "payload": { "input": "a.mp4", "output": "b.mp4" }
      }
    },
    "package://pypi/urirun/install": {
      "kind": "command",
      "adapter": "argv-template",
      "inputSchema": {
        "type": "object",
        "properties": {
          "requirement": { "type": "string", "default": "urirun" }
        },
        "additionalProperties": false
      },
      "argv": ["$PYTHON", "-m", "pip", "install", "{requirement}"],
      "meta": {
        "label": "PyPI install"
      }
    }
  }
}
