Skip to content
HALOWERK

File Formats and Conversion

webapp icon size selection

Web app icon selection returns the closest declared square icon for a requested size and purpose. Use it when an agent needs choosing an asset for a specific install surface.

POST https://format.halowerk.com/v1/webapp-icon-size-selection

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
manifest_locationstringYes
manifestobjectYes
document_locationstringNo
pixelsintegerYes
purposeSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "manifest_location": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1
    },
    "manifest": {
      "type": "object",
      "properties": {
        "icons": {
          "type": "array",
          "items": {}
        }
      }
    },
    "document_location": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1
    },
    "pixels": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4096
    },
    "purpose": {
      "enum": [
        "any",
        "maskable",
        "monochrome"
      ]
    }
  },
  "required": [
    "manifest_location",
    "manifest",
    "pixels",
    "purpose"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "manifest_location": "https://mdn.github.io/pwa-examples/a2hs/manifest.webmanifest",
  "manifest": {
    "icons": [
      {
        "src": "icon/fox-icon.png",
        "sizes": "192x192",
        "type": "image/png"
      }
    ]
  },
  "pixels": 144,
  "purpose": "any"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "asset": {
          "type": [
            "string",
            "null"
          ]
        },
        "size": {
          "type": [
            "string",
            "null"
          ]
        },
        "exact": {
          "type": "boolean"
        }
      },
      "required": [
        "asset",
        "size",
        "exact"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’