docs_ai_continue
Write more of an existing Doc with AppliFlo's AI and put it in the Doc, as the editor's Continue writing and Write a clause do. kind continue (default): a paragraph or two following on from the text before the place; kind clause: one new clause or section with its own numbered heading in the style of the rest (instruction required, e.g.
asks firstChanges something in your workspace, so clients ask you before running it.
What it does
Write more of an existing Doc with AppliFlo's AI and put it in the Doc, as the editor's Continue writing and Write a clause do. kind continue (default): a paragraph or two following on from the text before the place; kind clause: one new clause or section with its own numbered heading in the style of the rest (instruction required, e.g. "a refund clause, 14 days"). Saves the Doc and returns its new revision, the text written and checks to tell the person about. Spends the workspace's AI writing allowance (Starter and Business plans); refused like the app (ai_disabled, ai_plan, ai_rate_limited, ai_budget_reached). For a clause from the workspace's library use insert_clause; to change existing text use docs_ai_rewrite.
Inputs
| Name | Type | Description |
|---|---|---|
doc_idrequired | string | The Doc's id (from list_docs or get_doc).Up to 80 characters |
kind | string | continue (default) or clause.One of: continue, clause |
instruction | string | What to write, in the person's words. Required (3+ characters) for kind clause.Up to 1000 characters |
after | string | Put it after the block with this text, copied from the Doc (a heading like "4. Fees" means after its whole section). Leave out for the end of the Doc.Up to 200 characters |
revision | integer | The Doc's revision as you last read it (get_doc). Checked before any AI is spent: if the Doc has changed since, you get 409 revision_conflict with the current revision and nothing is spent or written. The tool holds the Doc's edit lock from that check until it has saved, so nobody can change it in between. Leave out to work on the Doc as it is now.At least 0 |
Call it
Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "docs_ai_continue",
"arguments": {
"doc_id": "<doc_id>"
}
}
}Input schema
The JSON Schema the server lists for this tool in tools/list.
{
"type": "object",
"properties": {
"doc_id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "The Doc's id (from list_docs or get_doc)."
},
"kind": {
"type": "string",
"enum": [
"continue",
"clause"
],
"description": "continue (default) or clause."
},
"instruction": {
"type": "string",
"maxLength": 1000,
"description": "What to write, in the person's words. Required (3+ characters) for kind clause."
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Put it after the block with this text, copied from the Doc (a heading like \"4. Fees\" means after its whole section). Leave out for the end of the Doc."
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The Doc's revision as you last read it (get_doc). Checked before any AI is spent: if the Doc has changed since, you get 409 revision_conflict with the current revision and nothing is spent or written. The tool holds the Doc's edit lock from that check until it has saved, so nobody can change it in between. Leave out to work on the Doc as it is now."
}
},
"required": [
"doc_id"
],
"additionalProperties": false
}docs_ai_draft
Draft a new Doc (a contract, letter or agreement) with AppliFlo's AI from a short brief, as Docs → New → Draft with AI does.
docs_ai_rewrite
Rewrite part of a Doc with AppliFlo's AI and replace it in the Doc, as selecting text and choosing Rewrite in the editor does. text is the exact words to rewrite, copied from the Doc as get_doc shows it (may span paragraphs); mode plainer, firmer, shorter, longer or grammar, or custom with an instruction.