anytype_get_type
Retrieve a specific object type from Anytype by providing the space ID and type ID to access structured data within your workspace.
Instructions
Obtiene un tipo específico
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | ID del espacio | |
| type_id | Yes | ID del tipo |
Implementation Reference
- src/handlers/types-tags.ts:16-20 (handler)The main handler function for 'anytype_get_type' that extracts space_id and type_id from arguments, makes an API request to retrieve the type details, and returns the JSON-formatted response.export async function handleGetType(args: any) { const { space_id, type_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}/types/${type_id}`); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; }
- src/tools/types.ts:19-30 (schema)The tool schema definition including name, description, and input schema requiring space_id and type_id.{ name: 'anytype_get_type', description: 'Obtiene un tipo específico', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, type_id: { type: 'string', description: 'ID del tipo' }, }, required: ['space_id', 'type_id'], }, },
- src/index.ts:150-151 (registration)The switch case registration in the main tool dispatcher that routes 'anytype_get_type' calls to the handleGetType handler.case 'anytype_get_type': return await handleGetType(args);
- src/index.ts:89-89 (registration)Inclusion of typeTools array (containing the schema) into the master tools list for tool discovery....typeTools,