Get Config
vitrine_get_configRetrieve the complete merged scene configuration for a model, including look, layout, and override settings.
Instructions
Get the full merged scene config for a model (look + layout + overrides).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | Model ID |
Implementation Reference
- src/tools/config.ts:5-20 (registration)The 'vitrine_get_config' tool is registered via server.registerTool inside registerConfigTools().
export function registerConfigTools(server: McpServer, client: VitrineClient) { server.registerTool( "vitrine_get_config", { title: "Get Config", description: "Get the full merged scene config for a model (look + layout + overrides).", inputSchema: z.object({ model_id: z.string().describe("Model ID"), }), }, async ({ model_id }) => { const res = await client.getConfig(model_id); if (!res.ok) return { content: [{ type: "text", text: `Error: ${res.data?.message ?? res.status}` }], isError: true }; return { content: [{ type: "text", text: JSON.stringify(res.data, null, 2) }] }; }, ); - src/tools/config.ts:15-19 (handler)The handler function: receives model_id, calls client.getConfig(model_id), and returns the full merged scene config as JSON text.
async ({ model_id }) => { const res = await client.getConfig(model_id); if (!res.ok) return { content: [{ type: "text", text: `Error: ${res.data?.message ?? res.status}` }], isError: true }; return { content: [{ type: "text", text: JSON.stringify(res.data, null, 2) }] }; }, - src/tools/config.ts:8-14 (schema)Input schema: requires a 'model_id' (string). Title: 'Get Config'. Description explains it gets the full merged scene config (look + layout + overrides).
{ title: "Get Config", description: "Get the full merged scene config for a model (look + layout + overrides).", inputSchema: z.object({ model_id: z.string().describe("Model ID"), }), }, - src/client.ts:89-91 (helper)The VitrineClient.getConfig() method makes a GET request to /v1/models/{modelId}/config — the underlying HTTP call powering the tool.
getConfig(modelId: string) { return this.request("GET", `/v1/models/${modelId}/config`); }