get
Retrieve current metadata for Chrome Web Store items including title, description, category, and listing details using the v1.1 API.
Instructions
Get the current metadata of a Chrome Web Store item (v1.1 API). Returns title, description, category, and other listing fields. Note: v1 API is deprecated and will be removed after Oct 15, 2026.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Extension item ID (defaults to CWS_ITEM_ID env var) | |
| projection | No | Metadata projection to fetch (defaults to DRAFT) |
Implementation Reference
- src/index.ts:448-476 (handler)Handler implementation for the "get" tool. It resolves the item ID, prepares the URL with the provided projection, makes a GET request, and formats the response.
server.tool( "get", "Get the current metadata of a Chrome Web Store item (v1.1 API). Returns title, description, category, and other listing fields. Note: v1 API is deprecated and will be removed after Oct 15, 2026.", { itemId: z .string() .optional() .describe("Extension item ID (defaults to CWS_ITEM_ID env var)"), projection: z .enum(["DRAFT", "PUBLISHED"]) .optional() .describe("Metadata projection to fetch (defaults to DRAFT)"), }, async ({ itemId, projection }) => { try { const id = resolveItemId(itemId); const p = projection || "DRAFT"; const url = `${V1_BASE}/items/${id}?projection=${encodeURIComponent(p)}`; const result = await apiCall(url, { method: "GET" }); return formatResponse(result); } catch (e: any) { return { content: [{ type: "text" as const, text: `Error: ${e.message}` }], isError: true, }; } }, );