vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Read
  • Packages
  • Versions & Dist-tags
  • Staging
  • Trusted Publishers
  • Projects
  • GitHub
  • Members & Invitations
  • Account & User
  • Connected Apps
  • read
  • Parameters
  • Home document links
  1. Registry
  2. /
  3. Agent Resources
  4. /
  5. MCP
  6. /
  7. Tools
  8. /
  9. Read

Read

Read any resource of the vlt.io API and follow its links.

read is the one tool that isn't an action. It fetches a resource, and everything else is reached from what it returns: links lead to other resources, and actions name the other tools you may call on this one. Start at the home document, /.

Example call
{ "name": "read", "arguments": { "url": "/" } }

The home document links to the API's catalogs and, under account, to the account you signed in to:

Response (trimmed)
{
  "$id": "/",
  "name": "vlt.io API",
  "links": {
    "action-definition-collection": { "$ref": "/action" },
    "current-principal": { "$ref": "/current-principal" },
    "privilege": { "$ref": "/privilege" },
    "schema-collection": { "$ref": "/schema" },
    "account": [{ "$ref": "/account/acme", "title": "Acme" }]
  }
}

A resource lists the actions you may take on it, keyed by tool name. Here, a package on the account's main registry:

Response (trimmed)
{
  "$id": "/account/acme/registry/main/package/%40acme%2Futils",
  "name": "@acme/utils",
  "links": {
    "version-collection": {
      "$ref": "/account/acme/registry/main/package/%40acme%2Futils/v"
    },
    "dist-tag-collection": {
      "$ref": "/account/acme/registry/main/package/%40acme%2Futils/dist-tag"
    }
  },
  "actions": {
    "package.deprecate": {
      "$ref": "/account/acme/registry/main/package/%40acme%2Futils/deprecate",
      "method": "POST",
      "title": "Deprecate package",
      "description": "Mark every version of the package as deprecated.",
      "inputSchema": { "$ref": "/schema/deprecate-request" }
    }
  }
}

read

GET a resource of the vlt.io API and return it. Resources link to each other through links: read the $ref of a link to follow it. The actions of a resource are what you may do there: call the tool with the name of the action, with the $id of the resource as target. Start at the home document, /.

  • Target: none. read takes a URL instead.
  • Privilege: none of its own. Resources in your signed-in account are read with its access. Other accounts are read without a token, so only their public data comes back.
  • Hints: Read-only

Redirects within the API are followed. URLs outside the API are refused.

Parameters

ParameterTypeRequiredDescription
urlstringYesThe URL of the resource: /, or the $ref of a link.

Home document links

LinkLeads to
accountThe account you signed in to. An array with one entry.
current-principalRedirects to the signed-in user.
action-definition-collectionEvery action a resource may list: the source of these tools.
privilegeThe catalog of privileges.
schema-collectionThe JSON Schemas of the API.
license-collectionThe SPDX license catalog.
malwareEvery npm package version flagged as malware by OSV.
registerCreating a new account and user.

Previous: OverviewHow the vlt.io MCP server teaches your client to use its tools, and how the client finds them.Next: PackagesSearch a registry, resolve versions, and deprecate, unpublish or change the visibility of a package.

On this page

  • read
  • Parameters
  • Home document links
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now