anytype_get_space
Retrieve a specific Anytype workspace by its unique ID to access and manage its content through the Anytype API.
Instructions
Obtiene un espacio específico por su ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>"
},
"name": "anytype_get_space"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | ID del espacio |
Implementation Reference
- src/handlers/spaces.ts:26-30 (handler)The main handler function that executes the tool logic: extracts space_id from arguments, makes API request to /v1/spaces/{space_id}, and returns the JSON response.
export async function handleGetSpace(args: any) { const { space_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}`); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } - src/tools/spaces.ts:13-23 (schema)The tool schema definition including name, description, and inputSchema requiring 'space_id'.
{ name: 'anytype_get_space', description: 'Obtiene un espacio específico por su ID', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' } }, required: ['space_id'], }, }, - src/index.ts:110-111 (registration)The switch case registration in the main CallToolRequestHandler that dispatches 'anytype_get_space' calls to the handleGetSpace function.
case 'anytype_get_space': return await handleGetSpace(args);