drupal_create_node
Create Drupal nodes via JSON:API by specifying content type and field attributes, with optional relationships.
Instructions
Create a new node. Pass attributes (and optional relationships) using JSON:API field names.
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": {
"bundle": "<bundle>",
"attributes": "<attributes>"
},
"name": "drupal_create_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | ||
| attributes | Yes | e.g. { "title": "...", "body": { "value": "...", "format": "basic_html" }, "status": true } | |
| relationships | No | JSON:API relationships object (optional) |