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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_type": "<doc_type>",
"name": "<name>"
},
"name": "generate_docs"
}
}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 |