Preview write comment
preview_write_commentPreview a new comment or an existing comment's visibility change.
Args: entity_id: Exact parent record ID. entity_name: Commentable type; aliases entity_type and entity. text: New body, 1–10000 characters; alias content. Omit for updates. private: Legacy author-private flag; default false means public. visibility: public, private (author-only), or internal (team-visible). Public ticket comments can send mail. Replies inherit visibility. comment_id: Existing top-level comment; only internal/private updates. Preserve body/solution. Public conversion without mail is unsupported. expected_version: Existing-comment version from preview. solution: Mark a new comment as solution. parent_comment_id: Reply parent; alias reply_to_comment_id. Returns: Approval token, normalized payload, execution envelope. when_to_use: Before writing; examples: get_schema(entity="comment", detail="payload_guide"). preconditions: Parent exists and is commentable; replies/updates belong to it. post_effects: No ERP mutation. Single-use approval binds target and payload. Execute with approval.token and execution.payload via execute_approved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| entity | No | ||
| content | No | ||
| private | No | ||
| solution | No | ||
| entity_id | Yes | ||
| comment_id | No | ||
| visibility | No | ||
| entity_name | No | ||
| entity_type | No | ||
| correlation_id | No | ||
| expected_version | No | ||
| parent_comment_id | No | ||
| reply_to_comment_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||