snapshot

Pack: softwareheritage · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/snapshot for the schema, then POST the same URL with its arguments for the data.

Fetch one archived snapshot by its id (the 40-hex id that origin_status returns): the list of branches and tags the repository had at that capture, each with the id and type of what it points at (revision, release, directory, or an alias such as HEAD -> refs/heads/main). Follow a revision target into the revision tool. Accepts a bare hex id or a SWHID (“swh:1:snp:”). Branch lists can be long: use limit and the returned next_branch as branch_from to page. Sourced from the Software Heritage archive.

Parameters

NameTypeRequiredDescription
idstringyesSnapshot id, 40 hex characters (“46f80e4e5d2d65c79f728d7dda059ec3c1d8bae8”) or a SWHID (“swh:1:snp:46f80e4e…”).
limitnumbernoMaximum branches to return, 1-1000 (default 100).
branch_fromstringnoStart the branch list at this branch name (use next_branch from a previous response).
name_includestringnoOnly branches whose name contains this text (e.g. “refs/tags/v2”).

Example call

Arguments

{
  "id": "46f80e4e5d2d65c79f728d7dda059ec3c1d8bae8",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/softwareheritage/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"snapshot","arguments":{"id":"46f80e4e5d2d65c79f728d7dda059ec3c1d8bae8","limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('snapshot', {
  "id": "46f80e4e5d2d65c79f728d7dda059ec3c1d8bae8",
  "limit": 5
});

Response shape

FieldTypeDescription
idstring
swhidstring
countnumber
branchesarray
next_branchstring | null
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "swhid": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "branches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "target": {
            "type": [
              "string",
              "null"
            ]
          },
          "target_type": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "next_branch": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the softwareheritage pack
{
  "mcpServers": {
    "softwareheritage": {
      "url": "https://gateway.pipeworx.io/softwareheritage/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 25, 2026