Skip to content

Webloc To Url MCP tool

MCP findutils:webloc_to_url

Convert Mac .webloc website shortcuts into Windows .url Internet Shortcuts. Pass each file as { name, content, encoding }: an XML .webloc as text, or a binary-plist .webloc as base64 with encoding "base64". The URL key of the property list becomes URL= under [InternetShortcut], with CRLF line endings, and the output file keeps the source name with .url instead of .webloc (repeated names get " (2)"). Files that are empty, not a property list, or have no URL key are listed in skipped with the reason, and the rest still convert. Also returns a name,url CSV of the converted set. The URLs are copied as written and never opened; non-web schemes are kept and reported in warnings.

Arguments

application/json
  • files

    array required

    The .webloc files, in order, at most 5000. Each item is { name, content, encoding? }: the file name, its text (XML plist) or base64 bytes, and "base64" when content is base64.

  • dedupe

    boolean optional

    Keep only the first shortcut for each exact URL. Default false. Default false.

Example arguments

Verified
{
  "files": [
    {
      "name": "Docs.webloc",
      "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plist version=\"1.0\">\n<dict>\n\t<key>URL</key>\n\t<string>https://example.com/docs</string>\n</dict>\n</plist>\n"
    }
  ]
}