fluent_sdk_query
Run read-only ServiceNow Table API queries through the SDK CLI with saved credentials to resolve sys_ids, inspect schemas, check records, and read choice values while authoring Fluent code.
Instructions
Run now-sdk query <table>: a read-only Table API query through the ServiceNow SDK CLI using its saved credentials (no browser). Ideal while authoring Fluent code: resolve sys_ids, inspect schemas, check existing records, read choice values. Example: { table: "sys_user_role", query: "name=admin", fields: ["sys_id","name"], limit: 1 }
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": {
"table": "<table>"
},
"name": "fluent_sdk_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | now-sdk credential alias (optional, defaults to the SDK default) | |
| limit | No | Max rows per page (default 100) | |
| query | No | Encoded query (e.g., "name=admin^active=true"). Defaults to all records. | |
| table | Yes | Table to query (e.g., "incident", "sys_dictionary") | |
| fields | No | Fields to return (e.g., ["sys_id","name"]) | |
| offset | No | Starting offset for paging | |
| display_value | No | Return display values, raw values, or both |