generate_docs
Generate Markdown documentation for ServiceNow artifacts like script includes, business rules, tables, scripted REST APIs, and applications. Output ready-to-use text for wikis or GitHub.
Instructions
Generate Markdown documentation for ServiceNow artifacts.
Supported doc targets: script_include — Full API reference with method signatures and usage examples business_rule — Metadata, risk analysis, script preview table — Field catalogue, BR list, ACL list, relationships scripted_rest — Endpoint reference, parameters, error codes application — Full component inventory
Returns Markdown text ready to paste into Confluence, GitHub, or a wiki.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_type | Yes | ||
| name | Yes | Artifact name | |
| table | No | Table name (required for table docs) | |
| script | No | Script source (for script_include and business_rule docs) | |
| description | No | ||
| when | No | ||
| events | No | ||
| condition | No | ||
| api_path | No | ||
| verb | No | ||
| requires_auth | No | ||
| client_callable | No | ||
| scope | No | ||
| components | No |