{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"allOf":[{"type":"object","properties":{"attachments":{"type":"array","maxItems":3,"items":{"type":"object","required":["file_upload_id"],"properties":{"file_upload_id":{"type":"string","maxLength":64000},"type":{"type":"string","const":"file_upload","maxLength":64000}},"maxProperties":100}},"display_name":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"integration","maxLength":64000}},"maxProperties":100},{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"user","maxLength":64000}},"maxProperties":100},{"type":"object","required":["type","custom"],"properties":{"type":{"type":"string","const":"custom","maxLength":64000},"custom":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":64000}},"maxProperties":100}},"maxProperties":100}]},"markdown_version":{"type":"string","enum":["v1","v2"],"maxLength":64000}},"maxProperties":100},{"oneOf":[{"type":"object","required":["parent","rich_text"],"properties":{"parent":{"oneOf":[{"type":"object","required":["page_id"],"properties":{"page_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"page_id","maxLength":64000}},"maxProperties":100},{"type":"object","required":["block_id"],"properties":{"block_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"block_id","maxLength":64000}},"maxProperties":100}]},"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100},{"type":"object","required":["parent","markdown"],"properties":{"parent":{"oneOf":[{"type":"object","required":["page_id"],"properties":{"page_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"page_id","maxLength":64000}},"maxProperties":100},{"type":"object","required":["block_id"],"properties":{"block_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"block_id","maxLength":64000}},"maxProperties":100}]},"markdown":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"object","required":["discussion_id","rich_text"],"properties":{"discussion_id":{"$ref":"#/$defs/idRequest"},"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100},{"type":"object","required":["discussion_id","markdown"],"properties":{"discussion_id":{"$ref":"#/$defs/idRequest"},"markdown":{"type":"string","maxLength":64000}},"maxProperties":100}]}]}},"required":["data"],"additionalProperties":false,"$defs":{"idRequest":{"type":"string","maxLength":64000},"richTextItemRequest":{"allOf":[{"$ref":"#/$defs/richTextItemRequestCommon"},{"oneOf":[{"$ref":"#/$defs/textRichTextItemRequest"},{"$ref":"#/$defs/mentionRichTextItemRequest"},{"$ref":"#/$defs/equationRichTextItemRequest"}]}]},"richTextItemRequestCommon":{"type":"object","properties":{"annotations":{"$ref":"#/$defs/annotationRequest"}},"maxProperties":100},"annotationRequest":{"type":"object","properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strikethrough":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"apiColor":{"type":"string","enum":["default","gray","brown","orange","yellow","green","blue","purple","pink","red","default_background","gray_background","brown_background","orange_background","yellow_background","green_background","blue_background","purple_background","pink_background","red_background"],"maxLength":64000},"textRichTextItemRequest":{"type":"object","required":["text"],"properties":{"type":{"type":"string","const":"text","maxLength":64000},"text":{"type":"object","required":["content"],"additionalProperties":false,"properties":{"content":{"type":"string","maxLength":2000},"link":{"oneOf":[{"type":"object","required":["url"],"properties":{"url":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"null"}]}},"maxProperties":100}},"maxProperties":100},"mentionRichTextItemRequest":{"type":"object","required":["mention"],"properties":{"type":{"type":"string","const":"mention","maxLength":64000},"mention":{"oneOf":[{"type":"object","required":["user"],"properties":{"type":{"type":"string","const":"user","maxLength":64000},"user":{"$ref":"#/$defs/partialUserObjectRequest"}},"maxProperties":100},{"type":"object","required":["date"],"properties":{"type":{"type":"string","const":"date","maxLength":64000},"date":{"$ref":"#/$defs/dateRequest"}},"maxProperties":100},{"type":"object","required":["page"],"properties":{"type":{"type":"string","const":"page","maxLength":64000},"page":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100}},"maxProperties":100},{"type":"object","required":["database"],"properties":{"type":{"type":"string","const":"database","maxLength":64000},"database":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100}},"maxProperties":100},{"type":"object","required":["template_mention"],"properties":{"type":{"type":"string","const":"template_mention","maxLength":64000},"template_mention":{"$ref":"#/$defs/templateMentionRequest"}},"maxProperties":100},{"type":"object","required":["custom_emoji"],"properties":{"type":{"type":"string","const":"custom_emoji","maxLength":64000},"custom_emoji":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"},"name":{"type":"string","maxLength":64000},"url":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100}]}},"maxProperties":100},"partialUserObjectRequest":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"},"object":{"type":"string","const":"user","maxLength":64000}},"maxProperties":100},"dateRequest":{"type":"object","required":["start"],"additionalProperties":false,"properties":{"start":{"type":"string","maxLength":64000},"end":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]},"time_zone":{"oneOf":[{"$ref":"#/$defs/timeZoneRequest"},{"type":"null"}]}},"maxProperties":100},"timeZoneRequest":{"type":"string","maxLength":64000},"templateMentionRequest":{"oneOf":[{"$ref":"#/$defs/templateMentionDateTemplateMentionRequest"},{"$ref":"#/$defs/templateMentionUserTemplateMentionRequest"}]},"templateMentionDateTemplateMentionRequest":{"type":"object","required":["template_mention_date"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"template_mention_date","maxLength":64000},"template_mention_date":{"type":"string","enum":["today","now"],"maxLength":64000}},"maxProperties":100},"templateMentionUserTemplateMentionRequest":{"type":"object","required":["template_mention_user"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"template_mention_user","maxLength":64000},"template_mention_user":{"type":"string","const":"me","maxLength":64000}},"maxProperties":100},"equationRichTextItemRequest":{"type":"object","required":["equation"],"properties":{"type":{"type":"string","const":"equation","maxLength":64000},"equation":{"type":"object","required":["expression"],"properties":{"expression":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100}}},"name":"Create a comment","id":"notion.api.create-a-comment","example":{"data":{"parent":{"page_id":"fixture"},"rich_text":[]}},"maxRequests":1,"summary":false}}