MCP conceptTools

Choose documentation 3

Concept and alpha: example support scope and release maturity.

v0.1.0.alpha.2

Current version

v0.1.0.alpha.2
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Ruby MCP reference

toolMCPv0.1.0.alpha.2

tmux_snapshot

tmux_snapshot( criteria?: object | object | object | object | object, cursor?: string, entity?: "session" | "window" | "pane" | "window_link" | "client", limit?: integer, )
tool[source]

Capture ordered metadata and evaluate Ruby criteria locally. Pages retain one immutable capture; expired cursors require a new query. Limit defaults to 50 records, maximum 200.

MCP request method
tools/call Send tmux_snapshot as the tool name, with the arguments below.
Tool selection
Enabled by default.

Arguments#

additionalProperties
false

Matches exactly one variant.

Result#

Returns object | object

Matches exactly one variant.

Types#

client: object

type
additionalProperties
false

client.control_mode: boolean | object

type

Matches one or more variants.

client.created: integer | object

type

Matches one or more variants.

client.height: integer | null | object

type

Matches one or more variants.

client.name: string | object

type

Matches one or more variants.

client.pid: integer | object

type

Matches one or more variants.

client.read_only: boolean | object

type

Matches one or more variants.

client.session_id: string | null | object

type

Matches one or more variants.

client.tty: string | null | object

type

Matches one or more variants.

client.utf8: boolean | object

type

Matches one or more variants.

client.width: integer | object

type

Matches one or more variants.

pane: object

type
additionalProperties
false

pane.active: boolean | object

type

Matches one or more variants.

pane.current_command: string | object

type

Matches one or more variants.

pane.current_path: string | null | object

type

Matches one or more variants.

pane.dead: boolean | object

type

Matches one or more variants.

pane.dead_status: integer | null | object

type

Matches one or more variants.

pane.height: integer | object

type

Matches one or more variants.

pane.id: string | object

type

Matches one or more variants.

pane.index: integer | object

type

Matches one or more variants.

pane.pid: integer | null | object

type

Matches one or more variants.

pane.title: string | object

type

Matches one or more variants.

pane.width: integer | object

type

Matches one or more variants.

pane.window_id: string | object

type

Matches one or more variants.

session: object

type
additionalProperties
false

session.attached: integer | object

type

Matches one or more variants.

session.created: integer | object

type

Matches one or more variants.

session.id: string | object

type

Matches one or more variants.

session.name: string | object

type

Matches one or more variants.

session.window_count: integer | object

type

Matches one or more variants.

window: object

type
additionalProperties
false
additionalProperties
false

window_link.active: boolean | object

type

Matches one or more variants.

window_link.index: integer | object

type

Matches one or more variants.

window_link.session_id: string | object

type

Matches one or more variants.

window_link.window_id: string | object

type

Matches one or more variants.

window.height: integer | object

type

Matches one or more variants.

window.id: string | object

type

Matches one or more variants.

window.layout: string | object

type

Matches one or more variants.

window.name: string | object

type

Matches one or more variants.

window.pane_count: integer | object

type

Matches one or more variants.

window.width: integer | object

type

Matches one or more variants.

Annotations#

destructiveHint
false
idempotentHint
false
openWorldHint
false
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"$defs": {
"client": {
"additionalProperties": false,
"properties": {
"and": {
"items": {
"$ref": "#/$defs/client"
},
"maxItems": 2048,
"type": "array"
},
"controlMode": {
"$ref": "#/$defs/client.control_mode"
},
"created": {
"$ref": "#/$defs/client.created"
},
"height": {
"$ref": "#/$defs/client.height"
},
"name": {
"$ref": "#/$defs/client.name"
},
"not": {
"$ref": "#/$defs/client"
},
"or": {
"items": {
"$ref": "#/$defs/client"
},
"maxItems": 2048,
"type": "array"
},
"pid": {
"$ref": "#/$defs/client.pid"
},
"readOnly": {
"$ref": "#/$defs/client.read_only"
},
"session": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"anyOf": [
{
"$ref": "#/$defs/session"
},
{
"type": "null"
}
]
},
"isNot": {
"anyOf": [
{
"$ref": "#/$defs/session"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"sessionId": {
"$ref": "#/$defs/client.session_id"
},
"tty": {
"$ref": "#/$defs/client.tty"
},
"utf8": {
"$ref": "#/$defs/client.utf8"
},
"width": {
"$ref": "#/$defs/client.width"
}
},
"type": "object"
},
"client.control_mode": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.control_mode"
}
},
"type": "object"
}
]
},
"client.created": {
"anyOf": [
{
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"gt": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"gte": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"in": {
"items": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"lte": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"not": {
"$ref": "#/$defs/client.created"
}
},
"type": "object"
}
]
},
"client.height": {
"anyOf": [
{
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/client.height"
}
},
"type": "object"
}
]
},
"client.name": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.name"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"client.pid": {
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/client.pid"
}
},
"type": "object"
}
]
},
"client.read_only": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.read_only"
}
},
"type": "object"
}
]
},
"client.session_id": {
"anyOf": [
{
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"in": {
"items": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.session_id"
}
},
"type": "object"
}
]
},
"client.tty": {
"anyOf": [
{
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"in": {
"items": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.tty"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"client.utf8": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/client.utf8"
}
},
"type": "object"
}
]
},
"client.width": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/client.width"
}
},
"type": "object"
}
]
},
"pane": {
"additionalProperties": false,
"properties": {
"active": {
"$ref": "#/$defs/pane.active"
},
"and": {
"items": {
"$ref": "#/$defs/pane"
},
"maxItems": 2048,
"type": "array"
},
"currentCommand": {
"$ref": "#/$defs/pane.current_command"
},
"currentPath": {
"$ref": "#/$defs/pane.current_path"
},
"dead": {
"$ref": "#/$defs/pane.dead"
},
"deadStatus": {
"$ref": "#/$defs/pane.dead_status"
},
"height": {
"$ref": "#/$defs/pane.height"
},
"id": {
"$ref": "#/$defs/pane.id"
},
"index": {
"$ref": "#/$defs/pane.index"
},
"not": {
"$ref": "#/$defs/pane"
},
"or": {
"items": {
"$ref": "#/$defs/pane"
},
"maxItems": 2048,
"type": "array"
},
"pid": {
"$ref": "#/$defs/pane.pid"
},
"title": {
"$ref": "#/$defs/pane.title"
},
"width": {
"$ref": "#/$defs/pane.width"
},
"window": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"$ref": "#/$defs/window"
},
"isNot": {
"$ref": "#/$defs/window"
}
},
"type": "object"
},
"windowId": {
"$ref": "#/$defs/pane.window_id"
}
},
"type": "object"
},
"pane.active": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.active"
}
},
"type": "object"
}
]
},
"pane.current_command": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.current_command"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"pane.current_path": {
"anyOf": [
{
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"in": {
"items": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.current_path"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"pane.dead": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.dead"
}
},
"type": "object"
}
]
},
"pane.dead_status": {
"anyOf": [
{
"anyOf": [
{
"maximum": 255,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"anyOf": [
{
"maximum": 255,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"gt": {
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"anyOf": [
{
"maximum": 255,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/pane.dead_status"
}
},
"type": "object"
}
]
},
"pane.height": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/pane.height"
}
},
"type": "object"
}
]
},
"pane.id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.id"
}
},
"type": "object"
}
]
},
"pane.index": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/pane.index"
}
},
"type": "object"
}
]
},
"pane.pid": {
"anyOf": [
{
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"gt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/pane.pid"
}
},
"type": "object"
}
]
},
"pane.title": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.title"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"pane.width": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/pane.width"
}
},
"type": "object"
}
]
},
"pane.window_id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/pane.window_id"
}
},
"type": "object"
}
]
},
"session": {
"additionalProperties": false,
"properties": {
"and": {
"items": {
"$ref": "#/$defs/session"
},
"maxItems": 2048,
"type": "array"
},
"attached": {
"$ref": "#/$defs/session.attached"
},
"created": {
"$ref": "#/$defs/session.created"
},
"currentWindow": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"anyOf": [
{
"$ref": "#/$defs/window"
},
{
"type": "null"
}
]
},
"isNot": {
"anyOf": [
{
"$ref": "#/$defs/window"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"id": {
"$ref": "#/$defs/session.id"
},
"name": {
"$ref": "#/$defs/session.name"
},
"not": {
"$ref": "#/$defs/session"
},
"or": {
"items": {
"$ref": "#/$defs/session"
},
"maxItems": 2048,
"type": "array"
},
"panes": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"every": {
"$ref": "#/$defs/pane"
},
"none": {
"$ref": "#/$defs/pane"
},
"some": {
"$ref": "#/$defs/pane"
}
},
"type": "object"
},
"windowCount": {
"$ref": "#/$defs/session.window_count"
},
"windowLinks": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"every": {
"$ref": "#/$defs/window_link"
},
"none": {
"$ref": "#/$defs/window_link"
},
"some": {
"$ref": "#/$defs/window_link"
}
},
"type": "object"
},
"windows": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"every": {
"$ref": "#/$defs/window"
},
"none": {
"$ref": "#/$defs/window"
},
"some": {
"$ref": "#/$defs/window"
}
},
"type": "object"
}
},
"type": "object"
},
"session.attached": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/session.attached"
}
},
"type": "object"
}
]
},
"session.created": {
"anyOf": [
{
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"gt": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"gte": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"in": {
"items": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"lte": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"not": {
"$ref": "#/$defs/session.created"
}
},
"type": "object"
}
]
},
"session.id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/session.id"
}
},
"type": "object"
}
]
},
"session.name": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/session.name"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"session.window_count": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/session.window_count"
}
},
"type": "object"
}
]
},
"window": {
"additionalProperties": false,
"properties": {
"activePane": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"anyOf": [
{
"$ref": "#/$defs/pane"
},
{
"type": "null"
}
]
},
"isNot": {
"anyOf": [
{
"$ref": "#/$defs/pane"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"and": {
"items": {
"$ref": "#/$defs/window"
},
"maxItems": 2048,
"type": "array"
},
"height": {
"$ref": "#/$defs/window.height"
},
"id": {
"$ref": "#/$defs/window.id"
},
"layout": {
"$ref": "#/$defs/window.layout"
},
"name": {
"$ref": "#/$defs/window.name"
},
"not": {
"$ref": "#/$defs/window"
},
"or": {
"items": {
"$ref": "#/$defs/window"
},
"maxItems": 2048,
"type": "array"
},
"paneCount": {
"$ref": "#/$defs/window.pane_count"
},
"panes": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"every": {
"$ref": "#/$defs/pane"
},
"none": {
"$ref": "#/$defs/pane"
},
"some": {
"$ref": "#/$defs/pane"
}
},
"type": "object"
},
"width": {
"$ref": "#/$defs/window.width"
},
"windowLinks": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"every": {
"$ref": "#/$defs/window_link"
},
"none": {
"$ref": "#/$defs/window_link"
},
"some": {
"$ref": "#/$defs/window_link"
}
},
"type": "object"
}
},
"type": "object"
},
"window_link": {
"additionalProperties": false,
"properties": {
"active": {
"$ref": "#/$defs/window_link.active"
},
"and": {
"items": {
"$ref": "#/$defs/window_link"
},
"maxItems": 2048,
"type": "array"
},
"index": {
"$ref": "#/$defs/window_link.index"
},
"not": {
"$ref": "#/$defs/window_link"
},
"or": {
"items": {
"$ref": "#/$defs/window_link"
},
"maxItems": 2048,
"type": "array"
},
"session": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"$ref": "#/$defs/session"
},
"isNot": {
"$ref": "#/$defs/session"
}
},
"type": "object"
},
"sessionId": {
"$ref": "#/$defs/window_link.session_id"
},
"window": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"is": {
"$ref": "#/$defs/window"
},
"isNot": {
"$ref": "#/$defs/window"
}
},
"type": "object"
},
"windowId": {
"$ref": "#/$defs/window_link.window_id"
}
},
"type": "object"
},
"window_link.active": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"type": "boolean"
},
"in": {
"items": {
"type": "boolean"
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window_link.active"
}
},
"type": "object"
}
]
},
"window_link.index": {
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/window_link.index"
}
},
"type": "object"
}
]
},
"window_link.session_id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window_link.session_id"
}
},
"type": "object"
}
]
},
"window_link.window_id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window_link.window_id"
}
},
"type": "object"
}
]
},
"window.height": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/window.height"
}
},
"type": "object"
}
]
},
"window.id": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window.id"
}
},
"type": "object"
}
]
},
"window.layout": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window.layout"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"window.name": {
"anyOf": [
{
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"contains": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"endsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"equals": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"in": {
"items": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
},
"maxItems": 1024,
"type": "array"
},
"not": {
"$ref": "#/$defs/window.name"
},
"startsWith": {
"maxLength": 65536,
"type": "string",
"x-maxUtf8Bytes": 65536
}
},
"type": "object"
}
]
},
"window.pane_count": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/window.pane_count"
}
},
"type": "object"
}
]
},
"window.width": {
"anyOf": [
{
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"equals": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"gte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"in": {
"items": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"maxItems": 1024,
"type": "array"
},
"lt": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"lte": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"not": {
"$ref": "#/$defs/window.width"
}
},
"type": "object"
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"oneOf": [
{
"not": {
"required": [
"cursor"
]
},
"required": [
"entity"
]
},
{
"not": {
"anyOf": [
{
"required": [
"entity"
]
},
{
"required": [
"criteria"
]
},
{
"required": [
"limit"
]
}
]
},
"required": [
"cursor"
]
}
],
"properties": {
"criteria": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"entity": {
"const": "session"
},
"profile": {
"const": "libtmux-ruby.where"
},
"version": {
"const": 1,
"type": "integer"
},
"where": {
"$ref": "#/$defs/session"
}
},
"required": [
"profile",
"version",
"entity",
"where"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"const": "window"
},
"profile": {
"const": "libtmux-ruby.where"
},
"version": {
"const": 1,
"type": "integer"
},
"where": {
"$ref": "#/$defs/window"
}
},
"required": [
"profile",
"version",
"entity",
"where"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"const": "pane"
},
"profile": {
"const": "libtmux-ruby.where"
},
"version": {
"const": 1,
"type": "integer"
},
"where": {
"$ref": "#/$defs/pane"
}
},
"required": [
"profile",
"version",
"entity",
"where"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"const": "window_link"
},
"profile": {
"const": "libtmux-ruby.where"
},
"version": {
"const": 1,
"type": "integer"
},
"where": {
"$ref": "#/$defs/window_link"
}
},
"required": [
"profile",
"version",
"entity",
"where"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"const": "client"
},
"profile": {
"const": "libtmux-ruby.where"
},
"version": {
"const": 1,
"type": "integer"
},
"where": {
"$ref": "#/$defs/client"
}
},
"required": [
"profile",
"version",
"entity",
"where"
],
"type": "object"
}
]
},
"cursor": {
"maxLength": 43,
"pattern": "^[a-f0-9]{32}:[0-9]{1,10}$",
"type": "string"
},
"entity": {
"enum": [
"session",
"window",
"pane",
"window_link",
"client"
]
},
"limit": {
"maximum": 200,
"minimum": 1,
"type": "integer"
}
},
"required": [],
"type": "object"
}
Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"additionalProperties": false,
"properties": {
"data": {
"additionalProperties": false,
"properties": {
"capture_id": {
"type": "string"
},
"coverage": {
"additionalProperties": {
"enum": [
"complete",
"unloaded"
]
},
"type": "object"
},
"entity": {
"enum": [
"session",
"window",
"pane",
"window_link",
"client"
]
},
"interval": {
"additionalProperties": false,
"properties": {
"clock": {
"const": "monotonic_seconds"
},
"finished": {
"type": "number"
},
"reads": {
"minimum": 0,
"type": "integer"
},
"started": {
"type": "number"
}
},
"required": [
"clock",
"started",
"finished",
"reads"
],
"type": "object"
},
"items": {
"items": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"fields": {
"additionalProperties": false,
"properties": {
"attached": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"created": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"windowCount": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"name",
"created",
"attached",
"windowCount"
],
"type": "object"
},
"kind": {
"const": "session"
},
"ref": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"kind": {
"const": "session"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
}
]
}
},
"required": [
"kind",
"fields",
"ref"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"additionalProperties": false,
"properties": {
"height": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"id": {
"type": "string"
},
"layout": {
"type": "string"
},
"name": {
"type": "string"
},
"paneCount": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"width": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"name",
"width",
"height",
"paneCount",
"layout"
],
"type": "object"
},
"kind": {
"const": "window"
},
"ref": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^@[0-9]+$",
"type": "string"
},
"kind": {
"const": "window"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
}
]
}
},
"required": [
"kind",
"fields",
"ref"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"currentCommand": {
"type": "string"
},
"currentPath": {
"type": [
"string",
"null"
]
},
"dead": {
"type": "boolean"
},
"deadStatus": {
"maximum": 255,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"height": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"id": {
"type": "string"
},
"index": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"pid": {
"maximum": 2147483647,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"title": {
"type": "string"
},
"width": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"windowId": {
"type": "string"
}
},
"required": [
"id",
"windowId",
"index",
"pid",
"currentCommand",
"currentPath",
"title",
"active",
"dead",
"deadStatus",
"width",
"height"
],
"type": "object"
},
"kind": {
"const": "pane"
},
"ref": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^%[0-9]+$",
"type": "string"
},
"kind": {
"const": "pane"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
}
]
}
},
"required": [
"kind",
"fields",
"ref"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"index": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"sessionId": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"sessionId",
"windowId",
"index",
"active"
],
"type": "object"
},
"kind": {
"const": "window_link"
},
"ref": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^@[0-9]+$",
"type": "string"
},
"index": {
"minimum": 0,
"type": "integer"
},
"kind": {
"const": "window_link"
},
"session_id": {
"maxLength": 32,
"pattern": "^\\$[0-9]+$",
"type": "string"
}
},
"required": [
"generation",
"kind",
"id",
"session_id",
"index"
],
"type": "object"
}
]
}
},
"required": [
"kind",
"fields",
"ref"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"additionalProperties": false,
"properties": {
"controlMode": {
"type": "boolean"
},
"created": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"height": {
"maximum": 4294967295,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"name": {
"type": "string"
},
"pid": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"readOnly": {
"type": "boolean"
},
"sessionId": {
"type": [
"string",
"null"
]
},
"tty": {
"type": [
"string",
"null"
]
},
"utf8": {
"type": "boolean"
},
"width": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
}
},
"required": [
"name",
"pid",
"created",
"tty",
"sessionId",
"width",
"height",
"readOnly",
"utf8",
"controlMode"
],
"type": "object"
},
"kind": {
"const": "client"
},
"ref": {
"type": "null"
}
},
"required": [
"kind",
"fields",
"ref"
],
"type": "object"
}
]
},
"maxItems": 200,
"type": "array"
},
"next_cursor": {
"type": "string"
},
"server_identity": {
"additionalProperties": false,
"properties": {
"generation": {
"type": "string"
},
"pid": {
"type": "integer"
},
"start_time": {
"type": "integer"
},
"tmux_version": {
"type": "string"
}
},
"required": [
"generation",
"pid",
"start_time",
"tmux_version"
],
"type": "object"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"capture_id",
"server_identity",
"entity",
"items",
"coverage",
"interval",
"truncated"
],
"type": "object"
},
"ok": {
"const": true
}
},
"required": [
"ok",
"data"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"delivery": {
"enum": [
"not_sent",
"possibly_sent",
"observed"
]
},
"effects": {
"additionalProperties": false,
"properties": {
"created": {
"items": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"kind": {
"const": "session"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^@[0-9]+$",
"type": "string"
},
"kind": {
"const": "window"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^%[0-9]+$",
"type": "string"
},
"kind": {
"const": "pane"
}
},
"required": [
"generation",
"kind",
"id"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generation": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"id": {
"maxLength": 32,
"pattern": "^@[0-9]+$",
"type": "string"
},
"index": {
"minimum": 0,
"type": "integer"
},
"kind": {
"const": "window_link"
},
"session_id": {
"maxLength": 32,
"pattern": "^\\$[0-9]+$",
"type": "string"
}
},
"required": [
"generation",
"kind",
"id",
"session_id",
"index"
],
"type": "object"
}
]
},
"maxItems": 3,
"type": "array"
},
"state": {
"enum": [
"none",
"known",
"unknown"
]
}
},
"required": [
"state",
"created"
],
"type": "object"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"delivery"
],
"type": "object"
},
"ok": {
"const": false
}
},
"required": [
"ok",
"error"
],
"type": "object"
}
],
"type": "object"
}
Esc

Type to search.

Reference preview Open reference