Comment Create
comment_createCreates a new comment on a specified Drupal entity. Provide entity type, entity ID, subject, body, and optional parent ID or author.
Instructions
Create a new comment.
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"subject": "<subject>",
"body": "<body>"
},
"name": "comment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| uid | No | ||
| body | Yes | ||
| subject | Yes | ||
| entity_id | Yes | ||
| field_name | No | comment | |
| entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||