Import a comment (import)
import_commentCreates a comment on an imported page with its original author and dates; re-imports are idempotent by source_id, and parent_comment_id attaches replies.
Instructions
Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Only works in a space created with import_create_space (otherwise 403 IMPORT_SPACE_NOT_IMPORTED). Create a comment on an imported page with its original author and dates. Idempotent by source_id. Replies use parent_comment_id = the Sophia id, or the Confluence id, of a comment you imported before; the API flattens threads to ONE level: a reply to a reply attaches to the first comment of the thread. Comments cannot carry files. Markdown rules are the same as pages (mentions, ticket keys, links); raw HTML is not rendered.
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": {
"page_id": "<page_id>",
"source_id": "<source_id>",
"body": "<body>",
"author_user_id": "<author_user_id>",
"created_at": "<created_at>"
},
"name": "import_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| page_id | Yes | Sophia page id (uuid), from get_page_tree, search_pages or recent_pages. | |
| edited_at | No | ISO 8601 date-time, e.g. 2023-05-02T10:11:12.000Z. | |
| source_id | Yes | The id of this comment in Confluence. Importing the same source id again changes nothing. | |
| created_at | Yes | ISO 8601 date-time, e.g. 2023-05-02T10:11:12.000Z. | |
| author_user_id | Yes | Sophia user id (uuid) from import_find_users or import_ensure_user. | |
| parent_comment_id | No | Parent comment: its Sophia id (uuid) or its Confluence id (resolved through the import map; it must be imported already). |