get_package_info

[architecture]

Returns compact package.json metadata for a package in the loaded workspace.

Why this tool exists

Monorepo package relationships and import graphs are too large to reconstruct reliably from scattered file reads.

How it helps the agent

The model can reason from package, project, dependency, dependent, path, and cycle facts before editing architecture-sensitive code.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
packageNamestringNoOptional package name to inspect.
packagePathstringNoOptional package path to inspect.

Examples

Inspect a workspace package

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_package_info",
    "arguments": {
      "packageName": "@acme/ui"
    }
  }
}

Response Notes

Returns package name, version, type, scripts, dependencies, and workspace ownership.

↑/↓ NavigateEnter OpenSpace Expand