Roll Custom Table
roll_custom_tablePipeworx original random tables: roll one or more entries from a table YOU supply — bring your own weighted list of { text, weight? } and get back a reproducible weighted draw. Entries may contain {{table:}} references to Pipeworx's BUILT-IN random tables (e.g. "{{table:npc_personality}}"), resolved recursively (up to 6 levels deep). Optional seed makes the roll reproducible; the seed used is always returned. No session support for custom tables — use roll_table for session-tracked built-in tables.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"seed": "pw-smoke-2",
"count": 3,
"entries": [
{
"text": "a {{table:npc_occupation}} with a grudge"
},
{
"text": "an ordinary traveler",
"weight": 2
}
]
},
"name": "roll_custom_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed for a reproducible roll. Omit for fresh randomness; the seed actually used is always returned. | |
| count | No | How many entries to roll, 1-20 (default 1). | |
| entries | Yes | Your table: a non-empty array of { text: string, weight?: number > 0 (default 1) }. Up to 500 entries. |