create_field_plugin
Create a custom field plugin for Storyblok by providing a unique name and JavaScript source code, specifying the context as space, organization, or partner.
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 |
|---|---|---|---|
| name | Yes | Unique name for your plugin (e.g., 'my-geo-selector') | |
| body | Yes | The uncompiled JavaScript source for the plugin | |
| compiled_body | No | Required; empty string if developing locally | |
| context | No | Context: 'space', 'org', or 'partner' | space |