update_project
Modify a project's name or custom domain configuration to reflect changes in branding or deployment requirements.
Instructions
Update a project's name or custom domain.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID (UUID). If omitted, uses SPRONTA_PROJECT_ID env var. | |
| name | No | New name (1–100 chars) | |
| customDomain | No | Custom CDN domain (max 253 chars), or null to remove |
Implementation Reference
- src/index.ts:96-102 (handler)The handler function for the `update_project` tool. It retrieves the project ID, extracts the optional `name` and `customDomain` parameters, and sends a PATCH request to the Spronta API.
case "update_project": { const pid = getProjectId(args); const body: Record<string, unknown> = {}; if (args.name !== undefined) body.name = args.name; if (args.customDomain !== undefined) body.customDomain = args.customDomain; return ok(await api.request("PATCH", `/images/projects/${pid}`, body)); } - src/tools.ts:103-117 (schema)Tool definition for `update_project` including its input schema, detailing parameters for updating project name and custom domain.
name: "update_project", description: "Update a project's name or custom domain.", inputSchema: { type: "object", properties: { ...projectIdParam, name: { type: "string", description: "New name (1–100 chars)" }, customDomain: { type: "string", description: "Custom CDN domain (max 253 chars), or null to remove", }, }, required: [], }, },