Skip to Content

save_doc_as_template

Keep a Doc as one of the workspace's doc templates, as the app's "Save as template": its content, roles and settings (not a PDF).

asks firstChanges something in your workspace, so clients ask you before running it.

What it does

Keep a Doc as one of the workspace's doc templates, as the app's "Save as template": its content, roles and settings (not a PDF). A new template named name (default: the doc's title), or with template_id, a new version of a doc template saved from this doc before (owners and admins only). create_doc with doc_template_id starts a Doc from it. Returns template_id, name, version and created. For an uploaded PDF use save_as_template.

Inputs

NameTypeDescription
doc_idrequiredstringA Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows).Up to 80 characters
namestringThe new template's name. Defaults to the doc's title.Up to 120 characters
template_idstringSave as the next version of this doc template instead.Up to 80 characters

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": "save_doc_as_template",
    "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": "A Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows)."
    },
    "name": {
      "type": "string",
      "maxLength": 120,
      "description": "The new template's name. Defaults to the doc's title."
    },
    "template_id": {
      "type": "string",
      "maxLength": 80,
      "description": "Save as the next version of this doc template instead."
    }
  },
  "required": [
    "doc_id"
  ],
  "additionalProperties": false
}

On this page