create_object
Create new objects like pages, notes, and tasks in your Anytype space with customizable names, types, descriptions, icons, and content using templates for structured creation.
Instructions
Creates a new object within a specified Anytype space. This tool allows you to add various types of content (pages, notes, tasks, etc.) to your spaces. You can specify the object's name, type, description, icon, and content. Optionally, you can use a template to create pre-structured objects. Use this tool when you need to add new content to an existing space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | Space ID to create the object in | |
| name | Yes | Object name | |
| type_key | Yes | Type key of object to create (e.g. 'ot-page') | |
| description | No | Object's short description | |
| icon | No | Object icon details (structure based on API docs) | |
| body | No | Object body/content (Markdown supported) | |
| template_id | No | Template ID to use | |
| source | No | Source URL (for bookmarks) |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"description": "Object body/content (Markdown supported)",
"type": "string"
},
"description": {
"description": "Object's short description",
"type": "string"
},
"icon": {
"additionalProperties": false,
"description": "Object icon details (structure based on API docs)",
"properties": {
"color": {
"description": "Color of the icon (optional)",
"type": "string"
},
"emoji": {
"description": "Emoji character (if format is 'emoji')",
"type": "string"
},
"file": {
"description": "URL to the icon file (if format is 'file')",
"format": "uri",
"type": "string"
},
"format": {
"description": "Icon format (required if icon is provided)",
"enum": [
"emoji",
"file",
"icon"
],
"type": "string"
},
"name": {
"description": "Name of the built-in icon (if format is 'icon')",
"type": "string"
}
},
"required": [
"format"
],
"type": "object"
},
"name": {
"description": "Object name",
"type": "string"
},
"source": {
"description": "Source URL (for bookmarks)",
"type": "string"
},
"space_id": {
"description": "Space ID to create the object in",
"type": "string"
},
"template_id": {
"description": "Template ID to use",
"type": "string"
},
"type_key": {
"description": "Type key of object to create (e.g. 'ot-page')",
"type": "string"
}
},
"required": [
"space_id",
"name",
"type_key"
],
"type": "object"
}