Access: Bearer token required. Additional scope: drafts:write. MCP allowed: attach_screenshot.
Input JSON Schema
This schema is generated from the canonical Zod input schema in the shared contract package, not copied into the docs source. JSON Schema describes representable structure; runtime refinements and transforms remain enforced by the canonical parser and may not be fully represented here.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"expected_updated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"image_base64": {
"type": "string",
"maxLength": 14000000
},
"url": {
"type": "string",
"format": "uri"
},
"caption": {
"type": "string",
"maxLength": 500
}
},
"required": [
"id"
],
"additionalProperties": {}
}HTTP and CLI
POST the versioned operation envelope to /api/v2/execute. Replace the placeholder with a valid input object from the schema above; this shape is not a runnable request.
{"version":1,"operation":"drafts.attach_screenshot","input":<input-object matching schema>}CLI command shape: indielogs call drafts.attach_screenshot '<input-json>'. The placeholder is not a valid sample input.