Skip to main content
Glama

anytype_update_space

Modify an existing Anytype workspace by updating its name, description, or icon to reflect changes in your organizational structure.

Instructions

Actualiza un espacio existente

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesID del espacio
nameNoNuevo nombre del espacio
descriptionNoNueva descripción del espacio
iconNoIcono

Implementation Reference

  • The main handler function that implements the tool logic: extracts space_id and update data, makes a PATCH request to the Anytype API endpoint `/v1/spaces/${space_id}`, and returns the formatted response.
    export async function handleUpdateSpace(args: any) { const { space_id, ...updateData } = args; const response = await makeRequest(`/v1/spaces/${space_id}`, { method: 'PATCH', body: JSON.stringify(updateData), }); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; }
  • Defines the tool metadata including name, description, and input schema specifying required space_id and optional fields like name, description, icon.
    { name: 'anytype_update_space', description: 'Actualiza un espacio existente', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, name: { type: 'string', description: 'Nuevo nombre del espacio' }, description: { type: 'string', description: 'Nueva descripción del espacio' }, icon: iconSchema, }, required: ['space_id'], }, },
  • src/index.ts:114-115 (registration)
    In the main switch statement, routes calls to 'anytype_update_space' to the handleUpdateSpace handler function.
    case 'anytype_update_space': return await handleUpdateSpace(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/cryptonahue/mcp-anytype'

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