get-api-spec
Fetch the Fluent API specification for a ServiceNow metadata type. Omit the metadata type to list all available types, helping you understand the API before writing code.
Instructions
Fetch the Fluent API specification for a ServiceNow metadata type (e.g., "business-rule", "script-include"). Call without arguments to list all available metadata types. Use this to understand the Fluent API for a specific metadata type before writing code. For code examples, use get-snippet instead. For best practices, use get-instruct instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadataType | No | ServiceNow metadata type (e.g., business-rule, script-include). Omit to list all available types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The resource content (markdown). | |
| snippetId | No | The returned snippet id (snippets only). | |
| metadataType | No | The ServiceNow metadata type, when a specific resource was returned. | |
| resourceType | Yes | Resource type: spec | snippet | instruct. | |
| availableTypes | No | All available metadata types (listing mode). | |
| additionalSnippetIds | No | Other available snippet ids (snippets only). |