Skip to main content
Glama

edit_element

Modify specific fields of personas, skills, templates, agents, memories, or ensembles in the DollhouseMCP server to update AI behavior configurations.

Instructions

Edit an existing element of any type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name to edit
typeYesThe element type
fieldYesThe field to edit (e.g., 'description', 'metadata.author', 'content')
valueYesThe new value for the field

Implementation Reference

  • Registration of the 'edit_element' tool, including name, description, input schema, and handler that delegates to server.editElement
    { tool: { name: "edit_element", description: "Edit an existing element of any type", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to edit", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, field: { type: "string", description: "The field to edit (e.g., 'description', 'metadata.author', 'content')", }, value: { description: "The new value for the field", oneOf: [ { type: "string" }, { type: "number" }, { type: "boolean" }, { type: "object" }, { type: "array" }, ], }, }, required: ["name", "type", "field", "value"], }, }, handler: (args: EditElementArgs) => server.editElement(args) },
  • TypeScript interface defining the arguments for the edit_element tool handler
    interface EditElementArgs { name: string; type: string; field: string; value: any; }
  • IToolHandler interface declaration for the editElement method used by the tool handler
    editElement(args: {name: string; type: string; field: string; value: any}): Promise<any>;
  • The direct handler function for the edit_element tool, which calls server.editElement(args) to perform the actual editing logic
    handler: (args: EditElementArgs) => server.editElement(args)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server