auto_write

Save a reusable prompt as a Magistry Skill so the user can re-run it via the /skill-name slash menu in the chat input. T

Save a reusable prompt as a Magistry Skill so the user can re-run it via the /skill-name slash menu in the chat input. The prompt_template may contain {variable} placeholders that match the parameters list. Scope options: "user" (private), "store" (any store member can run), or "workspace" (any of the user's stores). Skill names must be lowercase-dash format and unique per (owner, scope, store).

post/api/v1/tools/save_skill

Request

  • Base URL: https://app.magistry.io
  • URL: https://app.magistry.io/api/v1/tools/save_skill
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.magistry.io/api/oauth/authorize, token URL https://app.magistry.io/api/oauth/token, scopes: automation:write)

Request body

namestring required

Unique slug for the skill (e.g. "weekly-review").

descriptionstring

Short human-readable description shown in the skill picker.

prompt_templatestring required

The prompt body. May reference {variable} placeholders that match the parameters list.

scope'user' | 'store' | 'workspace'

Who can run this skill (default user).

default_mode'fast' | 'smart' | 'deep'

Which chat mode to invoke the skill under.

Response

Tool result

okboolean required
resultunknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.