{"version":"0.43.0","id":"kanvas.dataset.import","operationId":"kanvas.dataset.import","title":"dataset import","requiredInputs":["sessionId","name"],"description":"Import exactly one csv string, lossless json text, or rows array. Prefer json text or decimal strings when exact numeric lexemes matter. Limits: 2 MiB wire csv/json text, 20000 rows, 64 columns, column names 200 characters, cells 20000 characters; parsed dataset 5 MiB. Returns dataset ID and bounded preview for later source-bound table/chart/number submission. This is ordinary MCP data transfer, not automatic file access.","guidance":"Import exactly one of csv, json text, or rows. Pass the returned datasetId to a source-bound submission.","inputSchema":{"type":"object","properties":{"sessionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":160},"csv":{"type":"string","minLength":1,"maxLength":2097152,"x-maxUtf8Bytes":2097152,"description":"Original CSV text; maximum 2 MiB UTF-8 bytes as well as the character limit. Byte bound is enforced by the server."},"json":{"type":"string","minLength":1,"maxLength":2097152,"x-maxUtf8Bytes":2097152,"description":"Lossless original JSON text; maximum 2 MiB UTF-8 bytes as well as the character limit. Byte bound is enforced by the server."},"rows":{"minItems":1,"maxItems":20000,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"source":{"type":"object","properties":{"title":{"type":"string","maxLength":500},"url":{"type":"string","maxLength":2048},"locator":{"type":"string","maxLength":500},"timestamp":{"type":"string","maxLength":60}},"additionalProperties":false}},"required":["sessionId","name"],"additionalProperties":false,"oneOf":[{"required":["csv"],"not":{"anyOf":[{"required":["json"]},{"required":["rows"]}]}},{"required":["json"],"not":{"anyOf":[{"required":["csv"]},{"required":["rows"]}]}},{"required":["rows"],"not":{"anyOf":[{"required":["csv"]},{"required":["json"]}]}}],"examples":[{"sessionId":"session-id","name":"Example measurements","rows":[{"label":"Example A","value":12}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.dataset.import","arguments":{"sessionId":"session-id","name":"Example measurements","rows":[{"label":"Example A","value":12}]}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}