create_field_plugin
Create custom field plugins (field types) in Storyblok by specifying a unique name, JavaScript source, and context (space, org, or partner) for seamless integration.
Instructions
Creates a new field plugin (field type) in the specified context.
Args:
name (str): Unique name for your plugin (e.g., 'my-geo-selector').
body (str): The uncompiled JavaScript source for the plugin.
compiled_body (str): Required; empty string if developing locally.
context (str): 'space', 'org', or 'partner'.
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>",
"body": "<body>"
},
"name": "create_field_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| compiled_body | No | ||
| context | No | space | |
| name | Yes |