{"version":"0.43.0","id":"kanvas.selection.set","operationId":"kanvas.selection.set","title":"selection set","requiredInputs":["sessionId","displayId","selection"],"description":"Set agent-controlled filtering, stable sorting and row highlighting for the current table, list, log, communication or technical record view. Full source remains stored; this changes only a derived presentation. field is a literal key or dotted field path; empty field addresses a scalar list entry. Numeric comparison uses exact decimal strings. No filter inputs, dropdowns or column-sort buttons are added. selection:null restores the complete original order. may use an explicit revision guard and exact retry ID. Concurrency: expectedRevision is OPTIONAL stale-write guard. Supplying a stale guard rejects the call; omitting optional guards does not waive authorization or other preconditions. After a conflict, inspect the operation-specific error and read current authorized state before retrying; current-value fields vary by operation.","guidance":"Filter/sort/highlight source records without UI widgets or loss of stored source.","inputSchema":{"type":"object","properties":{"sessionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"displayId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"requestId":{"description":"Stable ID deduplicates retries; omission creates a fresh ID per call.","type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"selection":{"anyOf":[{"type":"object","properties":{"where":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"op":{"type":"string","enum":["eq","ne","contains","lt","lte","gt","gte"]},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":{"default":"auto","description":"auto compares numeric condition values numerically, including decimal strings; text is lexical. No currency parsing.","type":"string","enum":["auto","text","number"]}},"required":["field","op","value"],"additionalProperties":false}},"match":{"default":"all","type":"string","enum":["all","any"]},"sort":{"default":[],"maxItems":4,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"direction":{"default":"asc","type":"string","enum":["asc","desc"]},"type":{"default":"text","type":"string","enum":["text","number"]}},"required":["field"],"additionalProperties":false}},"highlight":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"op":{"type":"string","enum":["eq","ne","contains","lt","lte","gt","gte"]},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":{"default":"auto","description":"auto compares numeric condition values numerically, including decimal strings; text is lexical. No currency parsing.","type":"string","enum":["auto","text","number"]}},"required":["field","op","value"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]}},"required":["sessionId","displayId","selection"],"additionalProperties":false,"examples":[{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"filter-1","selection":{"where":[{"field":"level","op":"eq","value":"error"}],"sort":[{"field":"line","type":"number","direction":"asc"}]}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.selection.set","arguments":{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"filter-1","selection":{"where":[{"field":"level","op":"eq","value":"error"}],"sort":[{"field":"line","type":"number","direction":"asc"}]}}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}