validate_element
Validate elements like personas, skills, and agents for correctness and best practices in the DollhouseMCP server to ensure proper functionality and compatibility.
Instructions
Validate an element for correctness and best practices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The element name to validate | |
| type | Yes | The element type | |
| strict | No | Whether to apply strict validation rules |
Implementation Reference
- src/server/tools/ElementTools.ts:316-340 (registration)Tool registration for 'validate_element' including schema and handler that delegates to server.validateElement
tool: { name: "validate_element", description: "Validate an element for correctness and best practices", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to validate", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, strict: { type: "boolean", description: "Whether to apply strict validation rules", default: false, }, }, required: ["name", "type"], }, }, handler: (args: ValidateElementArgs) => server.validateElement(args) - Type definition for input arguments to validate_element tool
interface ValidateElementArgs { name: string; type: string; strict?: boolean; } - src/server/types.ts:26-26 (schema)IToolHandler interface definition for validateElement method signature
validateElement(args: {name: string; type: string; strict?: boolean}): Promise<any>;