create_action
Create a per-map post template that defines which fields and content types its posts can contain, including text, media, date, rating, select, and slider fields.
Instructions
Create a new per-map action (post template) that defines the structure for posts. Actions serve as blueprints that specify what fields and content types posts can contain. NOTE: this only creates regular per-map templates — the three global quick post templates (Note / Photo / Question) are system fixtures and cannot be created, edited, or deleted through this API; use list_quick_post_templates to retrieve them.
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": {
"name": "<name>",
"mapId": "<mapId>"
},
"name": "create_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the action/post template (1-50 characters) | |
| emoji | No | Emoji that represents this action (default: ':speech_balloon:'). Use the get_emoji_shortnames tool to find available emoji codes. Pass the emoji in shortcode format, e.g., ':tree:', ':camera:', ':fork_and_knife:'. Do not send the actual emoji character, just the shortcode string that you get from the tool. | :speech_balloon: |
| mapId | Yes | ID of the map this action belongs to | |
| order | No | Display order among other actions on the map | |
| fields | No | Define the structure and fields for posts created with this action. Only 3 fields can be featured. Only 2 fields can be featured if there is a featured media field. Featured fields should be placed at the first positions on field list | |
| duration | No | How long posts created with this action remain active (default: 'Forever') | Forever |
| borderColor | No | Hex color for the action border (7 characters, e.g., '#FF5733'). borderColor must be one of the following values: #7530F6, #8337EC, #E43AFF, #A86EFF, #87A2FB, #64DFDF, #FF006E, #FF63C1, #FF7D00, #FFAB00, #FFCB00, #C0E218, #00D880, #8DCCFC, #4EA6FD, #802AFF, #3E7C17, #29B23F, #1B939F, #342EAD, #8A9297, #4C5F68, #232932 |