slatebox-mcp 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -480,7 +480,7 @@
480
480
  "name": "ai.audit.list",
481
481
  "id": "ai.audit.list",
482
482
  "title": "AI control changes",
483
- "summary": "Lists changes to the AI configuration, newest first: AI control changes, ai.update (connections and feature choices at any level) and persona saves (chatIntentions.save). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only.",
483
+ "summary": "Lists changes to the agent configuration, newest first: AI control changes and ai.update (connections and feature choices at any level). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only.",
484
484
  "kind": "read",
485
485
  "readOnly": true,
486
486
  "destructive": false,
@@ -508,11 +508,11 @@
508
508
  "index": "ai.audit.list({limit?,before?,since?,…}): AI control changes",
509
509
  "toolset": "admin",
510
510
  "types": [],
511
- "dts": "declare namespace slatebox.ai.audit {\n /** AI control changes. Lists changes to the AI configuration, newest first: AI control changes, ai.update (connections and feature choices at any level) and persona saves (chatIntentions.save). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only. @scope ai:admin:read */\n function list(input: {\n /** (1 to 200) */\n limit?: number;\n before?: string;\n since?: string;\n action?: string;\n kind?: string;\n id?: string;\n userId?: string;\n outcome?: \"ok\" | \"refused\";\n }): Promise<{\n rows?: Array<Record<string, unknown>>;\n next?: string | null;\n [key: string]: unknown;\n }>;\n}",
511
+ "dts": "declare namespace slatebox.ai.audit {\n /** AI control changes. Lists changes to the agent configuration, newest first: AI control changes and ai.update (connections and feature choices at any level). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only. @scope ai:admin:read */\n function list(input: {\n /** (1 to 200) */\n limit?: number;\n before?: string;\n since?: string;\n action?: string;\n kind?: string;\n id?: string;\n userId?: string;\n outcome?: \"ok\" | \"refused\";\n }): Promise<{\n rows?: Array<Record<string, unknown>>;\n next?: string | null;\n [key: string]: unknown;\n }>;\n}",
512
512
  "tool": {
513
513
  "name": "list_ai_control_changes",
514
514
  "title": "List AI configuration changes",
515
- "description": "List who changed this server's AI configuration, when, why, and what changed. Keys appear only as fingerprints. Administrators only.\n\nAI control changes. Lists changes to the AI configuration, newest first: AI control changes, ai.update (connections and feature choices at any level) and persona saves (chatIntentions.save). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only.",
515
+ "description": "List who changed this server's AI configuration, when, why, and what changed. Keys appear only as fingerprints. Administrators only.\n\nAI control changes. Lists changes to the agent configuration, newest first: AI control changes and ai.update (connections and feature choices at any level). Each row has who (account and the name of the person, or \"a deleted account\"; person or agent, token, and via ddp, http or exec), the action, what it changed, the reason, before and after (keys only as fingerprints), and whether it was refused. Filter by action (exact, or a prefix ending in a dot such as ai.control.), kind, id, userId, outcome and time; pass next as before for the next page. Administrators only.",
516
516
  "inputSchema": {
517
517
  "type": "object",
518
518
  "properties": {
@@ -568,7 +568,7 @@
568
568
  "name": "ai.bindings.list",
569
569
  "id": "ai.bindings.list",
570
570
  "title": "AI bindings",
571
- "summary": "Lists every part of Slatebox that can be bound on this server, with its published binding (model chain, parameters, tools, limits, on/off), its versions newest first with author and note, and why a binding was skipped if it no longer passes its checks. Administrators only.",
571
+ "summary": "Lists every part of Slatebox that can be bound, with its choice (a model, use the default, or turned off) and what it resolves to now (provider, model and where that comes from). Administrators only.",
572
572
  "kind": "read",
573
573
  "readOnly": true,
574
574
  "destructive": false,
@@ -587,11 +587,11 @@
587
587
  "index": "ai.bindings.list({}): AI bindings",
588
588
  "toolset": "admin",
589
589
  "types": [],
590
- "dts": "declare namespace slatebox.ai.bindings {\n /** AI bindings. Lists every part of Slatebox that can be bound on this server, with its published binding (model chain, parameters, tools, limits, on/off), its versions newest first with author and note, and why a binding was skipped if it no longer passes its checks. Administrators only. @scope ai:admin:read */\n function list(input: Record<string, unknown>): Promise<{\n generation?: number;\n surfaces?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }>;\n}",
590
+ "dts": "declare namespace slatebox.ai.bindings {\n /** AI bindings. Lists every part of Slatebox that can be bound, with its choice (a model, use the default, or turned off) and what it resolves to now (provider, model and where that comes from). Administrators only. @scope ai:admin:read */\n function list(input: Record<string, unknown>): Promise<{\n generation?: number;\n surfaces?: Array<Record<string, unknown>>;\n skipped?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }>;\n}",
591
591
  "tool": {
592
592
  "name": "list_ai_bindings",
593
593
  "title": "List AI bindings",
594
- "description": "List which model chain, parameters, tools and limits each part of Slatebox uses, with versions. Administrators only.\n\nAI bindings. Lists every part of Slatebox that can be bound on this server, with its published binding (model chain, parameters, tools, limits, on/off), its versions newest first with author and note, and why a binding was skipped if it no longer passes its checks. Administrators only.",
594
+ "description": "List which model each part of Slatebox uses. Administrators only.\n\nAI bindings. Lists every part of Slatebox that can be bound, with its choice (a model, use the default, or turned off) and what it resolves to now (provider, model and where that comes from). Administrators only.",
595
595
  "inputSchema": {
596
596
  "type": "object",
597
597
  "properties": {},
@@ -607,15 +607,15 @@
607
607
  }
608
608
  },
609
609
  {
610
- "name": "ai.bindings.saveDraft",
611
- "id": "ai.bindings.saveDraft",
612
- "title": "Save AI binding draft",
613
- "summary": "Saves a draft binding for one part of Slatebox: its model chain (primary, then fallbacks with the failures each is tried for), parameters, allowed tools, limits and on/off. Changes nothing live: a person publishes it. An agent's draft is marked as a suggestion. Administrators only.",
610
+ "name": "ai.bindings.set",
611
+ "id": "ai.bindings.set",
612
+ "title": "Set AI bindings",
613
+ "summary": "Sets which model each named part of Slatebox uses: use model (a model id from the Models list, <provider>:<model>), default (the default model), or off (that part answers \"turned off by your administrator\"). A model that cannot do what the part needs is refused. Only the rows that change are written, each with its own line in the change history; note is optional. Every server picks it up within seconds. Administrators only.",
614
614
  "kind": "write",
615
615
  "readOnly": false,
616
616
  "destructive": false,
617
617
  "openWorld": false,
618
- "confirm": false,
618
+ "confirm": true,
619
619
  "scope": "ai:admin",
620
620
  "modes": [
621
621
  "save"
@@ -623,236 +623,77 @@
623
623
  "idempotency": "optional",
624
624
  "http": {
625
625
  "method": "PUT",
626
- "path": "/api/v1/ai/control/bindings/draft",
626
+ "path": "/api/v1/ai/control/bindings",
627
627
  "pathParams": [],
628
628
  "queryParams": [],
629
629
  "bodyParams": [
630
- "binding",
630
+ "changes",
631
631
  "note"
632
632
  ]
633
633
  },
634
- "index": "ai.bindings.saveDraft({binding,note?}): Save AI binding draft",
634
+ "index": "ai.bindings.set({changes,note?}): Set AI bindings",
635
635
  "toolset": "admin",
636
636
  "types": [],
637
- "dts": "declare namespace slatebox.ai.bindings {\n /** Save AI binding draft. Saves a draft binding for one part of Slatebox: its model chain (primary, then fallbacks with the failures each is tried for), parameters, allowed tools, limits and on/off. Changes nothing live: a person publishes it. An agent's draft is marked as a suggestion. Administrators only. @scope ai:admin */\n function saveDraft(input: {\n binding: {\n /** The part of Slatebox, for example agent.slatebox or shape. */\n surface: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n /** Only server in this build. */\n scope?: {\n level: \"server\";\n };\n /** false turns this part off for everyone; people see disabledMessage. */\n enabled?: boolean;\n /** What people see while it is off. (at most 300 characters) */\n disabledMessage?: string | null;\n /** The primary model, then fallbacks. Each entry names a model from the model list (model) or a connection with its own model (connection: server:<name>, or builtin for the built-in AI). Empty: follow what it follows. (at most 5 items) */\n chain?: Array<{\n /** (at most 260 characters) */\n model?: string;\n /** (at most 60 characters) */\n connection?: string;\n /** A fallback is tried when the previous model failed this way: infra (5xx, 429, timeout), shape (answers it could not use), context (too long), any. */\n on?: Array<\"infra\" | \"shape\" | \"context\" | \"any\">;\n }>;\n /** When the chain keeps failing on a server: fallback uses the settings file and built-in AI for 10 minutes; report keeps the chain and says so. Unset: fallback only for a chain of two or more that lists the built-in AI. */\n onTrip?: \"fallback\" | \"report\" | null;\n /** timeoutMs, maxTokens (only lowers the call site's), infraRetries, shapeRetries, temperature. null or absent: the built-in value. */\n params?: {\n /** (1000 to 600000) */\n timeoutMs?: number | null;\n /** (1 to 1000000) */\n maxTokens?: number | null;\n /** (0 to 10) */\n infraRetries?: number | null;\n /** (1 to 10) */\n shapeRetries?: number | null;\n /** (0 to 2) */\n temperature?: number | null;\n };\n /** slot: prompt id, or id@version to pin one. */\n prompts?: Record<string, string>;\n /** allow: the only tools sent and accepted back; mode forced, auto or none (none only where the part needs no tools). */\n tools?: {\n mode?: \"forced\" | \"auto\" | \"none\" | null;\n /** (at most 30 items) */\n allow?: string[] | null;\n };\n /** Micro-dollars per request; can only lower the built-in values. */\n limits?: {\n /** (at least 1) */\n estimate?: number | null;\n /** (at least 1) */\n ceiling?: number | null;\n };\n };\n /** A short note kept with the version. (at most 200 characters) */\n note?: string;\n }): Promise<({\n bindingId?: string;\n version?: number;\n status?: string;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
637
+ "dts": "declare namespace slatebox.ai.bindings {\n /** Set AI bindings. Sets which model each named part of Slatebox uses: use model (a model id from the Models list, <provider>:<model>), default (the default model), or off (that part answers \"turned off by your administrator\"). A model that cannot do what the part needs is refused. Only the rows that change are written, each with its own line in the change history; note is optional. Every server picks it up within seconds. Administrators only. @scope ai:admin @confirm @idempotent */\n function set(input: {\n /** (1–14 items) */\n changes: Array<{\n /** The part of Slatebox, for example shape or agent.slatebox; default is everything not set. */\n surface: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n use: \"default\" | \"model\" | \"off\";\n /** With use model: <provider>:<model>. (at most 260 characters) */\n model?: string;\n }>;\n /** Optional, kept in the change history. (at most 500 characters) */\n note?: string;\n }): Promise<({\n changed?: string[];\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
638
638
  "tool": {
639
- "name": "save_ai_binding_draft",
640
- "title": "Save an AI binding draft",
641
- "description": "Save a draft of which models, parameters and tools a part of Slatebox uses. Changes nothing live. Administrators only.\n\nSave AI binding draft. Saves a draft binding for one part of Slatebox: its model chain (primary, then fallbacks with the failures each is tried for), parameters, allowed tools, limits and on/off. Changes nothing live: a person publishes it. An agent's draft is marked as a suggestion. Administrators only.",
639
+ "name": "set_ai_bindings",
640
+ "title": "Set AI bindings",
641
+ "description": "Choose which model each part of Slatebox uses. Administrators only; a person agrees first.\n\nSet AI bindings. Sets which model each named part of Slatebox uses: use model (a model id from the Models list, <provider>:<model>), default (the default model), or off (that part answers \"turned off by your administrator\"). A model that cannot do what the part needs is refused. Only the rows that change are written, each with its own line in the change history; note is optional. Every server picks it up within seconds. Administrators only.",
642
642
  "inputSchema": {
643
643
  "type": "object",
644
644
  "properties": {
645
- "binding": {
646
- "type": "object",
647
- "properties": {
648
- "surface": {
649
- "type": "string",
650
- "enum": [
651
- "default",
652
- "chat",
653
- "chat.route",
654
- "generation",
655
- "presentation",
656
- "vision",
657
- "images",
658
- "shape",
659
- "workshop",
660
- "workshop.draft",
661
- "canvas",
662
- "agent.slatebox",
663
- "library",
664
- "connectors"
665
- ],
666
- "description": "The part of Slatebox, for example agent.slatebox or shape."
667
- },
668
- "scope": {
669
- "type": "object",
670
- "properties": {
671
- "level": {
672
- "type": "string",
673
- "enum": [
674
- "server"
675
- ]
676
- }
677
- },
678
- "required": [
679
- "level"
680
- ],
681
- "additionalProperties": false,
682
- "description": "Only server in this build."
683
- },
684
- "enabled": {
685
- "type": "boolean",
686
- "description": "false turns this part off for everyone; people see disabledMessage."
687
- },
688
- "disabledMessage": {
689
- "type": [
690
- "string",
691
- "null"
692
- ],
693
- "maxLength": 300,
694
- "description": "What people see while it is off."
695
- },
696
- "chain": {
697
- "type": "array",
698
- "maxItems": 5,
699
- "description": "The primary model, then fallbacks. Each entry names a model from the model list (model) or a connection with its own model (connection: server:<name>, or builtin for the built-in AI). Empty: follow what it follows.",
700
- "items": {
701
- "type": "object",
702
- "properties": {
703
- "model": {
704
- "type": "string",
705
- "maxLength": 260
706
- },
707
- "connection": {
708
- "type": "string",
709
- "maxLength": 60
710
- },
711
- "on": {
712
- "type": "array",
713
- "items": {
714
- "type": "string",
715
- "enum": [
716
- "infra",
717
- "shape",
718
- "context",
719
- "any"
720
- ]
721
- },
722
- "description": "A fallback is tried when the previous model failed this way: infra (5xx, 429, timeout), shape (answers it could not use), context (too long), any."
723
- }
724
- },
725
- "additionalProperties": false
726
- }
727
- },
728
- "onTrip": {
729
- "type": [
730
- "string",
731
- "null"
732
- ],
733
- "enum": [
734
- "fallback",
735
- "report",
736
- null
737
- ],
738
- "description": "When the chain keeps failing on a server: fallback uses the settings file and built-in AI for 10 minutes; report keeps the chain and says so. Unset: fallback only for a chain of two or more that lists the built-in AI."
739
- },
740
- "params": {
741
- "type": "object",
742
- "properties": {
743
- "timeoutMs": {
744
- "type": [
745
- "integer",
746
- "null"
747
- ],
748
- "minimum": 1000,
749
- "maximum": 600000
750
- },
751
- "maxTokens": {
752
- "type": [
753
- "integer",
754
- "null"
755
- ],
756
- "minimum": 1,
757
- "maximum": 1000000
758
- },
759
- "infraRetries": {
760
- "type": [
761
- "integer",
762
- "null"
763
- ],
764
- "minimum": 0,
765
- "maximum": 10
766
- },
767
- "shapeRetries": {
768
- "type": [
769
- "integer",
770
- "null"
771
- ],
772
- "minimum": 1,
773
- "maximum": 10
774
- },
775
- "temperature": {
776
- "type": [
777
- "number",
778
- "null"
779
- ],
780
- "minimum": 0,
781
- "maximum": 2
782
- }
783
- },
784
- "additionalProperties": false,
785
- "description": "timeoutMs, maxTokens (only lowers the call site's), infraRetries, shapeRetries, temperature. null or absent: the built-in value."
786
- },
787
- "prompts": {
788
- "type": "object",
789
- "additionalProperties": {
645
+ "changes": {
646
+ "type": "array",
647
+ "minItems": 1,
648
+ "maxItems": 14,
649
+ "items": {
650
+ "type": "object",
651
+ "properties": {
652
+ "surface": {
790
653
  "type": "string",
791
- "maxLength": 120
654
+ "enum": [
655
+ "default",
656
+ "chat",
657
+ "chat.route",
658
+ "generation",
659
+ "presentation",
660
+ "vision",
661
+ "images",
662
+ "shape",
663
+ "workshop",
664
+ "workshop.draft",
665
+ "canvas",
666
+ "agent.slatebox",
667
+ "library",
668
+ "connectors"
669
+ ],
670
+ "description": "The part of Slatebox, for example shape or agent.slatebox; default is everything not set."
792
671
  },
793
- "description": "slot: prompt id, or id@version to pin one."
794
- },
795
- "tools": {
796
- "type": "object",
797
- "properties": {
798
- "mode": {
799
- "type": [
800
- "string",
801
- "null"
802
- ],
803
- "enum": [
804
- "forced",
805
- "auto",
806
- "none",
807
- null
808
- ]
809
- },
810
- "allow": {
811
- "type": [
812
- "array",
813
- "null"
814
- ],
815
- "maxItems": 30,
816
- "items": {
817
- "type": "string",
818
- "maxLength": 64
819
- }
820
- }
672
+ "use": {
673
+ "type": "string",
674
+ "enum": [
675
+ "default",
676
+ "model",
677
+ "off"
678
+ ]
821
679
  },
822
- "additionalProperties": false,
823
- "description": "allow: the only tools sent and accepted back; mode forced, auto or none (none only where the part needs no tools)."
680
+ "model": {
681
+ "type": "string",
682
+ "maxLength": 260,
683
+ "description": "With use model: <provider>:<model>."
684
+ }
824
685
  },
825
- "limits": {
826
- "type": "object",
827
- "properties": {
828
- "estimate": {
829
- "type": [
830
- "integer",
831
- "null"
832
- ],
833
- "minimum": 1
834
- },
835
- "ceiling": {
836
- "type": [
837
- "integer",
838
- "null"
839
- ],
840
- "minimum": 1
841
- }
842
- },
843
- "additionalProperties": false,
844
- "description": "Micro-dollars per request; can only lower the built-in values."
845
- }
846
- },
847
- "required": [
848
- "surface"
849
- ],
850
- "additionalProperties": false
686
+ "required": [
687
+ "surface",
688
+ "use"
689
+ ],
690
+ "additionalProperties": false
691
+ }
851
692
  },
852
693
  "note": {
853
694
  "type": "string",
854
- "maxLength": 200,
855
- "description": "A short note kept with the version."
695
+ "maxLength": 500,
696
+ "description": "Optional, kept in the change history."
856
697
  },
857
698
  "confirm": {
858
699
  "type": "string",
@@ -866,15 +707,15 @@
866
707
  }
867
708
  },
868
709
  "required": [
869
- "binding"
710
+ "changes"
870
711
  ],
871
712
  "additionalProperties": false
872
713
  },
873
714
  "annotations": {
874
- "title": "Save an AI binding draft",
715
+ "title": "Set AI bindings",
875
716
  "readOnlyHint": false,
876
717
  "destructiveHint": false,
877
- "idempotentHint": false,
718
+ "idempotentHint": true,
878
719
  "openWorldHint": false
879
720
  }
880
721
  }
@@ -883,7 +724,7 @@
883
724
  "name": "ai.check",
884
725
  "id": "ai.check",
885
726
  "title": "Test AI",
886
- "summary": "Tests a saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists where it lists them, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team or server. On a self-hosted server a model on the host is at host.docker.internal, not localhost.",
727
+ "summary": "Tests your own or your team's saved connection (name) or one not yet saved (connection), on a self-hosted server: whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. A model on the host is at host.docker.internal, not localhost.",
887
728
  "kind": "write",
888
729
  "readOnly": true,
889
730
  "destructive": false,
@@ -907,11 +748,11 @@
907
748
  },
908
749
  "index": "ai.check({level?,name?,connection?}): Test AI",
909
750
  "types": [],
910
- "dts": "declare namespace slatebox.ai {\n /** Test AI. Tests a saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists where it lists them, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team or server. On a self-hosted server a model on the host is at host.docker.internal, not localhost. @scope ai:settings @openWorld @idempotent */\n function check(input: {\n /** me (yours), team (team admins) or server (administrators). */\n level?: \"me\" | \"team\" | \"server\";\n name?: string;\n connection?: {\n /** Your name for it, for example desk-model. */\n name: string;\n /** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), openai, anthropic, deepinfra, or one an administrator added (ai.control.get lists them). */\n type: string;\n /** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */\n baseUrl?: string;\n /** The model name the endpoint serves. (at most 200 characters) */\n model?: string;\n /** Stored encrypted and never shown again. Leave it out to keep the saved key; send an empty string to remove it. (at most 400 characters) */\n apiKey?: string;\n /** What the model can do, where you know it. Unset means try it; making images needs images: true. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n images?: boolean;\n };\n /** (256 to 200000) */\n maxTokens?: number;\n /** How the endpoint takes a forced tool call: named (the function by name), required (any tool, for an endpoint with no named form) or auto (the model decides, for an endpoint that refuses the others). */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n };\n }): Promise<({\n ok: boolean;\n reachable: boolean;\n models?: string[] | null;\n modelListed?: boolean | null;\n chat?: \"ok\" | \"failed\";\n tools: \"yes\" | \"no\" | \"unknown\";\n message: string;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
751
+ "dts": "declare namespace slatebox.ai {\n /** Test AI. Tests your own or your team's saved connection (name) or one not yet saved (connection), on a self-hosted server: whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. A model on the host is at host.docker.internal, not localhost. @scope ai:settings @openWorld @idempotent */\n function check(input: {\n /** me (yours) or team (team admins). */\n level?: \"me\" | \"team\";\n name?: string;\n connection?: {\n /** Your name for it, for example desk-model. */\n name: string;\n /** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added. */\n type: string;\n /** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */\n baseUrl?: string;\n /** The model name the endpoint serves. (at most 200 characters) */\n model?: string;\n /** Stored encrypted and never shown again. Leave it out to keep the saved key; send an empty string to remove it. (at most 400 characters) */\n apiKey?: string;\n /** What the model can do, where you know it. Unset means try it; making images needs images: true. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n images?: boolean;\n };\n /** (256 to 200000) */\n maxTokens?: number;\n /** How the endpoint takes a forced tool call: named (the function by name), required (any tool, for an endpoint with no named form) or auto (the model decides, for an endpoint that refuses the others). */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n };\n }): Promise<({\n ok: boolean;\n reachable: boolean;\n models?: string[] | null;\n modelListed?: boolean | null;\n chat?: \"ok\" | \"failed\";\n tools: \"yes\" | \"no\" | \"unknown\";\n message: string;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
911
752
  "tool": {
912
753
  "name": "check_ai_connection",
913
754
  "title": "Test an AI connection",
914
- "description": "Test whether Slatebox can reach an AI connection (a provider key, or an OpenAI-compatible endpoint) before it is used for drafting.\n\nTest AI. Tests a saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists where it lists them, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team or server. On a self-hosted server a model on the host is at host.docker.internal, not localhost.",
755
+ "description": "Test whether Slatebox can reach an AI connection (a provider key, or an OpenAI-compatible endpoint) before it is used for drafting.\n\nTest AI. Tests your own or your team's saved connection (name) or one not yet saved (connection), on a self-hosted server: whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. A model on the host is at host.docker.internal, not localhost.",
915
756
  "inputSchema": {
916
757
  "type": "object",
917
758
  "properties": {
@@ -919,10 +760,9 @@
919
760
  "type": "string",
920
761
  "enum": [
921
762
  "me",
922
- "team",
923
- "server"
763
+ "team"
924
764
  ],
925
- "description": "me (yours), team (team admins) or server (administrators)."
765
+ "description": "me (yours) or team (team admins)."
926
766
  },
927
767
  "name": {
928
768
  "type": "string",
@@ -939,7 +779,7 @@
939
779
  "type": {
940
780
  "type": "string",
941
781
  "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
942
- "description": "The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), openai, anthropic, deepinfra, or one an administrator added (ai.control.get lists them)."
782
+ "description": "The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added."
943
783
  },
944
784
  "baseUrl": {
945
785
  "type": "string",
@@ -1016,243 +856,11 @@
1016
856
  }
1017
857
  }
1018
858
  },
1019
- {
1020
- "name": "ai.connections.list",
1021
- "id": "ai.connections.list",
1022
- "title": "AI connections",
1023
- "summary": "Lists the server's AI connections: the settings file's (read-only) and the ones saved in the app, including the services beside the models (Stability, Google picture search, Noun Project, Deepgram). For each: its provider, address, model, where its key lives (sealed, an environment variable, the settings file or none), which key it is (a fingerprint, never the key), its last test and whether it is turned off. Administrators only.",
1024
- "kind": "read",
1025
- "readOnly": true,
1026
- "destructive": false,
1027
- "openWorld": false,
1028
- "confirm": false,
1029
- "scope": "ai:admin:read",
1030
- "modes": [],
1031
- "idempotency": "none",
1032
- "http": {
1033
- "method": "GET",
1034
- "path": "/api/v1/ai/control/connections",
1035
- "pathParams": [],
1036
- "queryParams": [],
1037
- "bodyParams": []
1038
- },
1039
- "index": "ai.connections.list({}): AI connections",
1040
- "toolset": "admin",
1041
- "types": [],
1042
- "dts": "declare namespace slatebox.ai.connections {\n /** AI connections. Lists the server's AI connections: the settings file's (read-only) and the ones saved in the app, including the services beside the models (Stability, Google picture search, Noun Project, Deepgram). For each: its provider, address, model, where its key lives (sealed, an environment variable, the settings file or none), which key it is (a fingerprint, never the key), its last test and whether it is turned off. Administrators only. @scope ai:admin:read */\n function list(input: Record<string, unknown>): Promise<{\n connections?: Array<Record<string, unknown>>;\n keysAvailable?: boolean;\n [key: string]: unknown;\n }>;\n}",
1043
- "tool": {
1044
- "name": "list_ai_connections",
1045
- "title": "List AI connections",
1046
- "description": "List this server's AI connections and which key each uses, never the key itself. Administrators only.\n\nAI connections. Lists the server's AI connections: the settings file's (read-only) and the ones saved in the app, including the services beside the models (Stability, Google picture search, Noun Project, Deepgram). For each: its provider, address, model, where its key lives (sealed, an environment variable, the settings file or none), which key it is (a fingerprint, never the key), its last test and whether it is turned off. Administrators only.",
1047
- "inputSchema": {
1048
- "type": "object",
1049
- "properties": {},
1050
- "additionalProperties": false
1051
- },
1052
- "annotations": {
1053
- "title": "List AI connections",
1054
- "readOnlyHint": true,
1055
- "destructiveHint": false,
1056
- "idempotentHint": true,
1057
- "openWorldHint": false
1058
- }
1059
- }
1060
- },
1061
- {
1062
- "name": "ai.connections.save",
1063
- "id": "ai.connections.save",
1064
- "title": "Save AI connections",
1065
- "summary": "Adds or changes server connections: a provider, address, model and key. A key is sealed with the server's key and never returned; keyRef env reads it from an environment variable named SLATEBOX_AI_KEY_… for each request; rotate {graceHours} keeps the old key working for 1 or 24 hours. status disabled keeps a connection but sends nothing to it. Also connects the services beside the models (stability, google-cse with its search engine ID as model, nounproject as key:secret, deepgram). Only a person sends a key, names an environment variable or changes an address or provider; an agent may save a keyless connection to a provider with a fixed address. Administrators only.",
1066
- "kind": "write",
1067
- "readOnly": false,
1068
- "destructive": true,
1069
- "openWorld": false,
1070
- "confirm": true,
1071
- "scope": "ai:admin",
1072
- "modes": [
1073
- "save"
1074
- ],
1075
- "idempotency": "optional",
1076
- "http": {
1077
- "method": "PUT",
1078
- "path": "/api/v1/ai/control/connections",
1079
- "pathParams": [],
1080
- "queryParams": [],
1081
- "bodyParams": [
1082
- "connections",
1083
- "reason"
1084
- ]
1085
- },
1086
- "index": "ai.connections.save({connections,reason?}): Save AI connections",
1087
- "toolset": "admin",
1088
- "types": [],
1089
- "dts": "declare namespace slatebox.ai.connections {\n /** Save AI connections. Adds or changes server connections: a provider, address, model and key. A key is sealed with the server's key and never returned; keyRef env reads it from an environment variable named SLATEBOX_AI_KEY_… for each request; rotate {graceHours} keeps the old key working for 1 or 24 hours. status disabled keeps a connection but sends nothing to it. Also connects the services beside the models (stability, google-cse with its search engine ID as model, nounproject as key:secret, deepgram). Only a person sends a key, names an environment variable or changes an address or provider; an agent may save a keyless connection to a provider with a fixed address. Administrators only. @scope ai:admin @destructive @confirm @idempotent */\n function save(input: {\n /** (1–20 items) */\n connections: Array<{\n /** The connection's name, for example gemini-main. */\n name: string;\n /** The provider: openai-compatible, openai, anthropic, deepinfra, one an administrator added, or a service beside the models (stability, google-cse, nounproject, deepgram). */\n type: string;\n /** For a provider without a fixed address: the address up to /v1. (at most 500 characters) */\n baseUrl?: string;\n /** The model it serves. For google-cse, the search engine ID (cx). (at most 200 characters) */\n model?: string;\n /** Stored encrypted with the server's key and never shown again. Leave it out to keep the saved key. For nounproject: key:secret. (at most 400 characters) */\n apiKey?: string;\n /** env: read the key from an environment variable named SLATEBOX_AI_KEY_… (or one the settings file allows) for each request; none: no key. Sending apiKey seals the key instead. */\n keyRef?: {\n kind: \"env\" | \"none\";\n name?: string;\n };\n /** With a new apiKey: the old key keeps working for this many hours, in case the provider has not taken the new one yet. */\n rotate?: {\n graceHours: 0 | 1 | 24;\n };\n /** What the model can do, where you know it. Unset means try it; making images needs images: true. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n json?: boolean;\n images?: boolean;\n reasoning?: boolean;\n };\n /** (256 to 200000) */\n maxTokens?: number;\n toolChoice?: \"auto\" | \"named\" | \"required\";\n /** disabled: kept, but nothing is sent to it. */\n status?: \"active\" | \"disabled\";\n }>;\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n connections?: string[];\n fingerprints?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1090
- "tool": {
1091
- "name": "save_ai_connections",
1092
- "title": "Save AI connections",
1093
- "description": "Add or change this server's AI connections and their keys. Keys are stored encrypted and never returned. Administrators only; a person agrees first.\n\nSave AI connections. Adds or changes server connections: a provider, address, model and key. A key is sealed with the server's key and never returned; keyRef env reads it from an environment variable named SLATEBOX_AI_KEY_… for each request; rotate {graceHours} keeps the old key working for 1 or 24 hours. status disabled keeps a connection but sends nothing to it. Also connects the services beside the models (stability, google-cse with its search engine ID as model, nounproject as key:secret, deepgram). Only a person sends a key, names an environment variable or changes an address or provider; an agent may save a keyless connection to a provider with a fixed address. Administrators only.",
1094
- "inputSchema": {
1095
- "type": "object",
1096
- "properties": {
1097
- "connections": {
1098
- "type": "array",
1099
- "minItems": 1,
1100
- "maxItems": 20,
1101
- "items": {
1102
- "type": "object",
1103
- "properties": {
1104
- "name": {
1105
- "type": "string",
1106
- "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
1107
- "description": "The connection's name, for example gemini-main."
1108
- },
1109
- "type": {
1110
- "type": "string",
1111
- "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
1112
- "description": "The provider: openai-compatible, openai, anthropic, deepinfra, one an administrator added, or a service beside the models (stability, google-cse, nounproject, deepgram)."
1113
- },
1114
- "baseUrl": {
1115
- "type": "string",
1116
- "maxLength": 500,
1117
- "description": "For a provider without a fixed address: the address up to /v1."
1118
- },
1119
- "model": {
1120
- "type": "string",
1121
- "maxLength": 200,
1122
- "description": "The model it serves. For google-cse, the search engine ID (cx)."
1123
- },
1124
- "apiKey": {
1125
- "type": "string",
1126
- "maxLength": 400,
1127
- "writeOnly": true,
1128
- "description": "Stored encrypted with the server's key and never shown again. Leave it out to keep the saved key. For nounproject: key:secret."
1129
- },
1130
- "keyRef": {
1131
- "type": "object",
1132
- "properties": {
1133
- "kind": {
1134
- "type": "string",
1135
- "enum": [
1136
- "env",
1137
- "none"
1138
- ]
1139
- },
1140
- "name": {
1141
- "type": "string",
1142
- "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
1143
- }
1144
- },
1145
- "required": [
1146
- "kind"
1147
- ],
1148
- "additionalProperties": false,
1149
- "description": "env: read the key from an environment variable named SLATEBOX_AI_KEY_… (or one the settings file allows) for each request; none: no key. Sending apiKey seals the key instead."
1150
- },
1151
- "rotate": {
1152
- "type": "object",
1153
- "properties": {
1154
- "graceHours": {
1155
- "type": "integer",
1156
- "enum": [
1157
- 0,
1158
- 1,
1159
- 24
1160
- ]
1161
- }
1162
- },
1163
- "required": [
1164
- "graceHours"
1165
- ],
1166
- "additionalProperties": false,
1167
- "description": "With a new apiKey: the old key keeps working for this many hours, in case the provider has not taken the new one yet."
1168
- },
1169
- "capabilities": {
1170
- "type": "object",
1171
- "properties": {
1172
- "tools": {
1173
- "type": "boolean"
1174
- },
1175
- "vision": {
1176
- "type": "boolean"
1177
- },
1178
- "json": {
1179
- "type": "boolean"
1180
- },
1181
- "images": {
1182
- "type": "boolean"
1183
- },
1184
- "reasoning": {
1185
- "type": "boolean"
1186
- }
1187
- },
1188
- "additionalProperties": false,
1189
- "description": "What the model can do, where you know it. Unset means try it; making images needs images: true."
1190
- },
1191
- "maxTokens": {
1192
- "type": "integer",
1193
- "minimum": 256,
1194
- "maximum": 200000
1195
- },
1196
- "toolChoice": {
1197
- "type": "string",
1198
- "enum": [
1199
- "auto",
1200
- "named",
1201
- "required"
1202
- ]
1203
- },
1204
- "status": {
1205
- "type": "string",
1206
- "enum": [
1207
- "active",
1208
- "disabled"
1209
- ],
1210
- "description": "disabled: kept, but nothing is sent to it."
1211
- }
1212
- },
1213
- "required": [
1214
- "name",
1215
- "type"
1216
- ],
1217
- "additionalProperties": false
1218
- }
1219
- },
1220
- "reason": {
1221
- "type": "string",
1222
- "minLength": 1,
1223
- "maxLength": 500,
1224
- "description": "Why, for the change history."
1225
- },
1226
- "confirm": {
1227
- "type": "string",
1228
- "pattern": "^cf_[A-Za-z0-9]{24}$",
1229
- "description": "The confirmation id from a confirmation_required result, once the person agreed."
1230
- },
1231
- "idempotencyKey": {
1232
- "type": "string",
1233
- "pattern": "^[!-~]{1,128}$",
1234
- "description": "Send with confirm: the idempotencyKey from the confirmation_required result."
1235
- }
1236
- },
1237
- "required": [
1238
- "connections"
1239
- ],
1240
- "additionalProperties": false
1241
- },
1242
- "annotations": {
1243
- "title": "Save AI connections",
1244
- "readOnlyHint": false,
1245
- "destructiveHint": true,
1246
- "idempotentHint": true,
1247
- "openWorldHint": false
1248
- }
1249
- }
1250
- },
1251
859
  {
1252
860
  "name": "ai.control.effective",
1253
861
  "id": "ai.control.effective",
1254
862
  "title": "Effective AI binding",
1255
- "summary": "Shows the binding each surface (or one) resolves to for a person (userId; none = someone not signed in), with the source of each field: a published binding, an AI settings choice, the settings file or the built-in default. usage true adds each surface's calls, failed calls and spend over the last 24 hours. Administrators only.",
863
+ "summary": "Shows which model each part of Slatebox (or one) answers with for a person (userId; none = someone not signed in): the provider and model, and where that comes from (its own choice, the part it follows, the default, the built-in default, or the person's own AI on a self-hosted server). usage true adds each part's calls, failed calls and spend over the last 24 hours. Administrators only.",
1256
864
  "kind": "read",
1257
865
  "readOnly": true,
1258
866
  "destructive": false,
@@ -1268,19 +876,18 @@
1268
876
  "queryParams": [
1269
877
  "surface",
1270
878
  "userId",
1271
- "plan",
1272
879
  "usage"
1273
880
  ],
1274
881
  "bodyParams": []
1275
882
  },
1276
- "index": "ai.control.effective({surface?,userId?,plan?,usage?}): Effective AI binding",
883
+ "index": "ai.control.effective({surface?,userId?,usage?}): Effective AI binding",
1277
884
  "toolset": "admin",
1278
885
  "types": [],
1279
- "dts": "declare namespace slatebox.ai.control {\n /** Effective AI binding. Shows the binding each surface (or one) resolves to for a person (userId; none = someone not signed in), with the source of each field: a published binding, an AI settings choice, the settings file or the built-in default. usage true adds each surface's calls, failed calls and spend over the last 24 hours. Administrators only. @scope ai:admin:read */\n function effective(input: {\n surface?: string;\n userId?: string;\n plan?: string;\n usage?: boolean;\n }): Promise<{\n generation?: number;\n surfaces?: unknown[];\n usage?: Record<string, unknown>;\n [key: string]: unknown;\n }>;\n}",
886
+ "dts": "declare namespace slatebox.ai.control {\n /** Effective AI binding. Shows which model each part of Slatebox (or one) answers with for a person (userId; none = someone not signed in): the provider and model, and where that comes from (its own choice, the part it follows, the default, the built-in default, or the person's own AI on a self-hosted server). usage true adds each part's calls, failed calls and spend over the last 24 hours. Administrators only. @scope ai:admin:read */\n function effective(input: {\n surface?: string;\n userId?: string;\n usage?: boolean;\n }): Promise<{\n generation?: number;\n surfaces?: unknown[];\n usage?: Record<string, unknown>;\n [key: string]: unknown;\n }>;\n}",
1280
887
  "tool": {
1281
888
  "name": "get_ai_control_effective",
1282
889
  "title": "Read effective AI bindings",
1283
- "description": "Read which model, prompts and limits each part of Slatebox uses for one person, and where each comes from. Administrators only.\n\nEffective AI binding. Shows the binding each surface (or one) resolves to for a person (userId; none = someone not signed in), with the source of each field: a published binding, an AI settings choice, the settings file or the built-in default. usage true adds each surface's calls, failed calls and spend over the last 24 hours. Administrators only.",
890
+ "description": "Read which model each part of Slatebox uses for one person, and where it comes from. Administrators only.\n\nEffective AI binding. Shows which model each part of Slatebox (or one) answers with for a person (userId; none = someone not signed in): the provider and model, and where that comes from (its own choice, the part it follows, the default, the built-in default, or the person's own AI on a self-hosted server). usage true adds each part's calls, failed calls and spend over the last 24 hours. Administrators only.",
1284
891
  "inputSchema": {
1285
892
  "type": "object",
1286
893
  "properties": {
@@ -1292,10 +899,6 @@
1292
899
  "type": "string",
1293
900
  "pattern": "^[A-Za-z0-9_-]{1,64}$"
1294
901
  },
1295
- "plan": {
1296
- "type": "string",
1297
- "pattern": "^[a-z0-9-]{1,32}$"
1298
- },
1299
902
  "usage": {
1300
903
  "type": "boolean"
1301
904
  }
@@ -1315,7 +918,7 @@
1315
918
  "name": "ai.control.get",
1316
919
  "id": "ai.control.get",
1317
920
  "title": "AI control",
1318
- "summary": "Returns the AI control snapshot: every surface and what it follows, providers, server connections (never keys), models, published bindings, agents, prompt heads, the global switch, and health (documents skipped because they failed their checks). Administrators only.",
921
+ "summary": "Returns the AI control snapshot: every part of Slatebox and what it follows, the providers (what each is, its address) and which have an active key (a fingerprint, never the key), the provider presets, the models with their prices, the bindings, the default model, agents, prompt heads, the global switch, and health. Administrators only.",
1319
922
  "kind": "read",
1320
923
  "readOnly": true,
1321
924
  "destructive": false,
@@ -1334,11 +937,11 @@
1334
937
  "index": "ai.control.get({}): AI control",
1335
938
  "toolset": "admin",
1336
939
  "types": [],
1337
- "dts": "declare namespace slatebox.ai.control {\n /** AI control. Returns the AI control snapshot: every surface and what it follows, providers, server connections (never keys), models, published bindings, agents, prompt heads, the global switch, and health (documents skipped because they failed their checks). Administrators only. @scope ai:admin:read */\n function get(input: Record<string, unknown>): Promise<{\n generation?: number;\n dbLayer?: string;\n surfaces?: unknown[];\n health?: unknown[];\n [key: string]: unknown;\n }>;\n}",
940
+ "dts": "declare namespace slatebox.ai.control {\n /** AI control. Returns the AI control snapshot: every part of Slatebox and what it follows, the providers (what each is, its address) and which have an active key (a fingerprint, never the key), the provider presets, the models with their prices, the bindings, the default model, agents, prompt heads, the global switch, and health. Administrators only. @scope ai:admin:read */\n function get(input: Record<string, unknown>): Promise<{\n generation?: number;\n surfaces?: unknown[];\n providers?: unknown[];\n models?: unknown[];\n health?: unknown[];\n [key: string]: unknown;\n }>;\n}",
1338
941
  "tool": {
1339
942
  "name": "get_ai_control",
1340
943
  "title": "Read AI control",
1341
- "description": "Read which AI answers each part of Slatebox on this server, where each choice comes from, and any problems. Administrators only; keys are never returned.\n\nAI control. Returns the AI control snapshot: every surface and what it follows, providers, server connections (never keys), models, published bindings, agents, prompt heads, the global switch, and health (documents skipped because they failed their checks). Administrators only.",
944
+ "description": "Read which AI answers each part of Slatebox on this server, where each choice comes from, and any problems. Administrators only; keys are never returned.\n\nAI control. Returns the AI control snapshot: every part of Slatebox and what it follows, the providers (what each is, its address) and which have an active key (a fingerprint, never the key), the provider presets, the models with their prices, the bindings, the default model, agents, prompt heads, the global switch, and health. Administrators only.",
1342
945
  "inputSchema": {
1343
946
  "type": "object",
1344
947
  "properties": {},
@@ -1357,7 +960,7 @@
1357
960
  "name": "ai.control.health",
1358
961
  "id": "ai.control.health",
1359
962
  "title": "AI control health",
1360
- "summary": "Lists AI control problems: documents skipped because they failed their checks (that surface falls back to the settings file and built-in defaults), and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and connections whose last test failed. An empty list means nothing is wrong. Administrators only.",
963
+ "summary": "Lists AI control problems: documents skipped because they failed their checks (that part uses the default), keys the settings file still holds that could not be moved to the backend, and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and providers in use with no active key. An empty list means nothing is wrong. Administrators only.",
1361
964
  "kind": "read",
1362
965
  "readOnly": true,
1363
966
  "destructive": false,
@@ -1376,11 +979,11 @@
1376
979
  "index": "ai.control.health({}): AI control health",
1377
980
  "toolset": "admin",
1378
981
  "types": [],
1379
- "dts": "declare namespace slatebox.ai.control {\n /** AI control health. Lists AI control problems: documents skipped because they failed their checks (that surface falls back to the settings file and built-in defaults), and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and connections whose last test failed. An empty list means nothing is wrong. Administrators only. @scope ai:admin:read */\n function health(input: Record<string, unknown>): Promise<{\n generation?: number;\n dbLayer?: string;\n health?: unknown[];\n warnings?: unknown[];\n [key: string]: unknown;\n }>;\n}",
982
+ "dts": "declare namespace slatebox.ai.control {\n /** AI control health. Lists AI control problems: documents skipped because they failed their checks (that part uses the default), keys the settings file still holds that could not be moved to the backend, and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and providers in use with no active key. An empty list means nothing is wrong. Administrators only. @scope ai:admin:read */\n function health(input: Record<string, unknown>): Promise<{\n generation?: number;\n health?: unknown[];\n warnings?: unknown[];\n [key: string]: unknown;\n }>;\n}",
1380
983
  "tool": {
1381
984
  "name": "get_ai_control_health",
1382
985
  "title": "Read AI control problems",
1383
- "description": "Read the problems with this server's AI set-up: settings that were skipped and prompts that fell back to built-in text. Administrators only.\n\nAI control health. Lists AI control problems: documents skipped because they failed their checks (that surface falls back to the settings file and built-in defaults), and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and connections whose last test failed. An empty list means nothing is wrong. Administrators only.",
986
+ "description": "Read the problems with this server's AI set-up: settings that were skipped and prompts that fell back to built-in text. Administrators only.\n\nAI control health. Lists AI control problems: documents skipped because they failed their checks (that part uses the default), keys the settings file still holds that could not be moved to the backend, and published prompts that fell back to their built-in text. warnings lists models with no price (charged at the dearest rate) and providers in use with no active key. An empty list means nothing is wrong. Administrators only.",
1384
987
  "inputSchema": {
1385
988
  "type": "object",
1386
989
  "properties": {},
@@ -1399,7 +1002,7 @@
1399
1002
  "name": "ai.control.reset",
1400
1003
  "id": "ai.control.reset",
1401
1004
  "title": "Reset AI control",
1402
- "summary": "Returns AI configuration to the settings file and built-in defaults. target use clears the feature choices an administrator made for the server in the app (keys: only those; connections stay); binding removes one part's published binding (surface), so it follows what it follows again; bindings removes every published binding (their versions stay); prompt returns one prompt (promptId) to its built-in text and drops a binding's pin of a version of it, prompts every prompt (their versions stay); dbLayer switches AI control's own documents off at runtime, so every surface resolves from the AI settings, the settings file and code; all does every one. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only.",
1005
+ "summary": "Returns AI configuration to its defaults. target binding removes one part's choice (surface), so it uses the default model again; bindings removes every part's choice and the default's, so the built-in default (Meta Muse Ember) answers everything; prompt returns one prompt (promptId) to its built-in text, prompts every prompt (their versions stay); all does every one. Providers, models and keys stay. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only.",
1403
1006
  "kind": "write",
1404
1007
  "readOnly": false,
1405
1008
  "destructive": true,
@@ -1419,30 +1022,27 @@
1419
1022
  "target",
1420
1023
  "surface",
1421
1024
  "promptId",
1422
- "keys",
1423
1025
  "reason"
1424
1026
  ]
1425
1027
  },
1426
- "index": "ai.control.reset({target,surface?,promptId?,keys?,reason}): Reset AI control",
1028
+ "index": "ai.control.reset({target,surface?,promptId?,reason}): Reset AI control",
1427
1029
  "toolset": "admin",
1428
1030
  "types": [],
1429
- "dts": "declare namespace slatebox.ai.control {\n /** Reset AI control. Returns AI configuration to the settings file and built-in defaults. target use clears the feature choices an administrator made for the server in the app (keys: only those; connections stay); binding removes one part's published binding (surface), so it follows what it follows again; bindings removes every published binding (their versions stay); prompt returns one prompt (promptId) to its built-in text and drops a binding's pin of a version of it, prompts every prompt (their versions stay); dbLayer switches AI control's own documents off at runtime, so every surface resolves from the AI settings, the settings file and code; all does every one. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only. @scope ai:admin @destructive @confirm @idempotent */\n function reset(input: {\n target: \"use\" | \"binding\" | \"bindings\" | \"prompt\" | \"prompts\" | \"dbLayer\" | \"all\";\n /** For target binding: the part of Slatebox. */\n surface?: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n /** For target prompt: the prompt. */\n promptId?: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** For target use: only these feature choices. (1–15 items) */\n keys?: Array<\"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"generation.notes\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\">;\n /** (1–500 characters) */\n reason: string;\n }): Promise<({\n target?: string;\n cleared?: string[];\n removed?: string[];\n prompts?: string[];\n unpinned?: string[];\n dbLayer?: string;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1031
+ "dts": "declare namespace slatebox.ai.control {\n /** Reset AI control. Returns AI configuration to its defaults. target binding removes one part's choice (surface), so it uses the default model again; bindings removes every part's choice and the default's, so the built-in default (Meta Muse Ember) answers everything; prompt returns one prompt (promptId) to its built-in text, prompts every prompt (their versions stay); all does every one. Providers, models and keys stay. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only. @scope ai:admin @destructive @confirm @idempotent */\n function reset(input: {\n target: \"binding\" | \"bindings\" | \"prompt\" | \"prompts\" | \"all\";\n /** For target binding: the part of Slatebox. */\n surface?: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n /** For target prompt: the prompt. */\n promptId?: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.writes\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** (1–500 characters) */\n reason: string;\n }): Promise<({\n target?: string;\n removed?: string[];\n prompts?: string[];\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1430
1032
  "tool": {
1431
1033
  "name": "reset_ai_control",
1432
1034
  "title": "Reset AI control",
1433
- "description": "Return this server's AI choices to the settings file and built-in defaults, or switch AI control's own settings off. Needs a reason; a person agrees first. Administrators only.\n\nReset AI control. Returns AI configuration to the settings file and built-in defaults. target use clears the feature choices an administrator made for the server in the app (keys: only those; connections stay); binding removes one part's published binding (surface), so it follows what it follows again; bindings removes every published binding (their versions stay); prompt returns one prompt (promptId) to its built-in text and drops a binding's pin of a version of it, prompts every prompt (their versions stay); dbLayer switches AI control's own documents off at runtime, so every surface resolves from the AI settings, the settings file and code; all does every one. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only.",
1035
+ "description": "Return this server's AI choices or prompts to their defaults. Needs a reason; a person agrees first. Administrators only.\n\nReset AI control. Returns AI configuration to its defaults. target binding removes one part's choice (surface), so it uses the default model again; bindings removes every part's choice and the default's, so the built-in default (Meta Muse Ember) answers everything; prompt returns one prompt (promptId) to its built-in text, prompts every prompt (their versions stay); all does every one. Providers, models and keys stay. AI turned off for everyone stays off. From a token, a reset that would switch back on a part an administrator turned off is refused. Needs a reason, which the audit trail keeps. Administrators only.",
1434
1036
  "inputSchema": {
1435
1037
  "type": "object",
1436
1038
  "properties": {
1437
1039
  "target": {
1438
1040
  "type": "string",
1439
1041
  "enum": [
1440
- "use",
1441
1042
  "binding",
1442
1043
  "bindings",
1443
1044
  "prompt",
1444
1045
  "prompts",
1445
- "dbLayer",
1446
1046
  "all"
1447
1047
  ]
1448
1048
  },
@@ -1511,6 +1111,7 @@
1511
1111
  "library.refine.retry",
1512
1112
  "tool.propose_library_refinement",
1513
1113
  "connectors.plan.system",
1114
+ "connectors.plan.writes",
1514
1115
  "connectors.plan.next",
1515
1116
  "connectors.plan.tool",
1516
1117
  "connectors.layout.system",
@@ -1527,32 +1128,6 @@
1527
1128
  ],
1528
1129
  "description": "For target prompt: the prompt."
1529
1130
  },
1530
- "keys": {
1531
- "type": "array",
1532
- "minItems": 1,
1533
- "maxItems": 15,
1534
- "items": {
1535
- "type": "string",
1536
- "enum": [
1537
- "default",
1538
- "chat",
1539
- "chat.route",
1540
- "generation",
1541
- "generation.notes",
1542
- "presentation",
1543
- "vision",
1544
- "images",
1545
- "shape",
1546
- "workshop",
1547
- "workshop.draft",
1548
- "canvas",
1549
- "agent.slatebox",
1550
- "library",
1551
- "connectors"
1552
- ]
1553
- },
1554
- "description": "For target use: only these feature choices."
1555
- },
1556
1131
  "reason": {
1557
1132
  "type": "string",
1558
1133
  "minLength": 1,
@@ -1604,24 +1179,156 @@
1604
1179
  "queryParams": [],
1605
1180
  "bodyParams": []
1606
1181
  },
1607
- "index": "ai.get({}): AI settings",
1182
+ "index": "ai.get({}): AI settings",
1183
+ "types": [],
1184
+ "dts": "declare namespace slatebox.ai {\n /** AI settings. The AI connections you, your team and this server have (never their keys), which one each feature uses (chat, generation, presentation, vision, images, shape, and the default), and which connection serves each feature for you now (effective), with what it cannot do. ownProviders false means this server uses only the AI its operator set up. @scope ai:settings */\n function get(input: Record<string, unknown>): Promise<{\n features: Array<Record<string, unknown>>;\n /** Every feature and part a choice may name, with the one it follows while unset. */\n surfaces?: Array<Record<string, unknown>>;\n useKeys?: string[];\n ownProviders: boolean;\n keysAvailable?: boolean;\n hosted?: boolean;\n mine?: Record<string, unknown> | null;\n team?: Record<string, unknown> | null;\n server: Record<string, unknown>;\n effective: Record<string, unknown>;\n [key: string]: unknown;\n }>;\n}",
1185
+ "tool": {
1186
+ "name": "get_ai_settings",
1187
+ "title": "Read your AI settings",
1188
+ "description": "Read which AI connections the person, their team and this server have, and which one each Slatebox feature uses. Keys are never returned.\n\nAI settings. The AI connections you, your team and this server have (never their keys), which one each feature uses (chat, generation, presentation, vision, images, shape, and the default), and which connection serves each feature for you now (effective), with what it cannot do. ownProviders false means this server uses only the AI its operator set up.",
1189
+ "inputSchema": {
1190
+ "type": "object",
1191
+ "properties": {},
1192
+ "additionalProperties": false
1193
+ },
1194
+ "annotations": {
1195
+ "title": "Read your AI settings",
1196
+ "readOnlyHint": true,
1197
+ "destructiveHint": false,
1198
+ "idempotentHint": true,
1199
+ "openWorldHint": false
1200
+ }
1201
+ }
1202
+ },
1203
+ {
1204
+ "name": "ai.keys.list",
1205
+ "id": "ai.keys.list",
1206
+ "title": "AI keys",
1207
+ "summary": "Lists the server's provider keys (or one provider's): which key each is (a fingerprint), whether it is active, standby or revoked, who added it and when, and when it was last tested and last used. Never a key. Administrators only.",
1208
+ "kind": "read",
1209
+ "readOnly": true,
1210
+ "destructive": false,
1211
+ "openWorld": false,
1212
+ "confirm": false,
1213
+ "scope": "ai:admin:read",
1214
+ "modes": [],
1215
+ "idempotency": "none",
1216
+ "http": {
1217
+ "method": "GET",
1218
+ "path": "/api/v1/ai/control/keys",
1219
+ "pathParams": [],
1220
+ "queryParams": [
1221
+ "provider"
1222
+ ],
1223
+ "bodyParams": []
1224
+ },
1225
+ "index": "ai.keys.list({provider?}): AI keys",
1226
+ "toolset": "admin",
1227
+ "types": [],
1228
+ "dts": "declare namespace slatebox.ai.keys {\n /** AI keys. Lists the server's provider keys (or one provider's): which key each is (a fingerprint), whether it is active, standby or revoked, who added it and when, and when it was last tested and last used. Never a key. Administrators only. @scope ai:admin:read */\n function list(input: {\n /** A model provider's id (for example meta or deepinfra), or a service beside the models (stability, google-cse, nounproject, deepgram). */\n provider?: string;\n }): Promise<{\n keys?: Array<Record<string, unknown>>;\n keysAvailable?: boolean;\n fromSettings?: string[];\n [key: string]: unknown;\n }>;\n}",
1229
+ "tool": {
1230
+ "name": "list_ai_keys",
1231
+ "title": "List AI keys",
1232
+ "description": "List this server's AI provider keys by fingerprint, never the keys. Administrators only.\n\nAI keys. Lists the server's provider keys (or one provider's): which key each is (a fingerprint), whether it is active, standby or revoked, who added it and when, and when it was last tested and last used. Never a key. Administrators only.",
1233
+ "inputSchema": {
1234
+ "type": "object",
1235
+ "properties": {
1236
+ "provider": {
1237
+ "type": "string",
1238
+ "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
1239
+ "description": "A model provider's id (for example meta or deepinfra), or a service beside the models (stability, google-cse, nounproject, deepgram)."
1240
+ }
1241
+ },
1242
+ "additionalProperties": false
1243
+ },
1244
+ "annotations": {
1245
+ "title": "List AI keys",
1246
+ "readOnlyHint": true,
1247
+ "destructiveHint": false,
1248
+ "idempotentHint": true,
1249
+ "openWorldHint": false
1250
+ }
1251
+ }
1252
+ },
1253
+ {
1254
+ "name": "ai.keys.test",
1255
+ "id": "ai.keys.test",
1256
+ "title": "Test AI key",
1257
+ "summary": "Tests a saved key (id) or one not yet saved (provider and apiKey): whether the provider is reached, takes the key, and its model answers and calls tools. A saved key keeps the outcome (last tested). Saves nothing else. The key goes only to the provider's own address. An unsaved key is a person's test. Administrators only.",
1258
+ "kind": "write",
1259
+ "readOnly": true,
1260
+ "destructive": false,
1261
+ "openWorld": true,
1262
+ "confirm": false,
1263
+ "scope": "ai:admin",
1264
+ "modes": [
1265
+ "save"
1266
+ ],
1267
+ "idempotency": "optional",
1268
+ "http": {
1269
+ "method": "POST",
1270
+ "path": "/api/v1/ai/control/keys/test",
1271
+ "pathParams": [],
1272
+ "queryParams": [],
1273
+ "bodyParams": [
1274
+ "id",
1275
+ "provider",
1276
+ "apiKey",
1277
+ "model"
1278
+ ]
1279
+ },
1280
+ "index": "ai.keys.test({id?,provider?,apiKey?,model?}): Test AI key",
1281
+ "toolset": "admin",
1608
1282
  "types": [],
1609
- "dts": "declare namespace slatebox.ai {\n /** AI settings. The AI connections you, your team and this server have (never their keys), which one each feature uses (chat, generation, presentation, vision, images, shape, and the default), and which connection serves each feature for you now (effective), with what it cannot do. ownProviders false means this server uses only the AI its operator set up. @scope ai:settings */\n function get(input: Record<string, unknown>): Promise<{\n features: Array<Record<string, unknown>>;\n /** Every feature and part a choice may name, with the one it follows while unset. */\n surfaces?: Array<Record<string, unknown>>;\n useKeys?: string[];\n ownProviders: boolean;\n keysAvailable?: boolean;\n hosted?: boolean;\n mine?: Record<string, unknown> | null;\n team?: Record<string, unknown> | null;\n server: Record<string, unknown>;\n effective: Record<string, unknown>;\n [key: string]: unknown;\n }>;\n}",
1283
+ "dts": "declare namespace slatebox.ai.keys {\n /** Test AI key. Tests a saved key (id) or one not yet saved (provider and apiKey): whether the provider is reached, takes the key, and its model answers and calls tools. A saved key keeps the outcome (last tested). Saves nothing else. The key goes only to the provider's own address. An unsaved key is a person's test. Administrators only. @scope ai:admin @openWorld @idempotent */\n function test(input: {\n /** A key's id, from ai.keys.list. */\n id?: string;\n /** A model provider's id (for example meta or deepinfra), or a service beside the models (stability, google-cse, nounproject, deepgram). */\n provider?: string;\n /** Stored encrypted with the server's key-encryption key and never shown again. For nounproject: key:secret. (1–400 characters) */\n apiKey?: string;\n /** For google-cse, the search engine ID (cx). For a key test, the model asked (the provider's first model by default). (at most 200 characters) */\n model?: string;\n }): Promise<({\n ok?: boolean;\n reachable?: boolean;\n tools?: string;\n message?: string;\n latencyMs?: number;\n /** A key as anyone may read it: id, provider, status (active, standby, revoked), keyFingerprint, label, source, createdAt/By, activatedAt, revokedAt/By, lastTest, lastUsedAt. Never the key. */\n key?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1610
1284
  "tool": {
1611
- "name": "get_ai_settings",
1612
- "title": "Read your AI settings",
1613
- "description": "Read which AI connections the person, their team and this server have, and which one each Slatebox feature uses. Keys are never returned.\n\nAI settings. The AI connections you, your team and this server have (never their keys), which one each feature uses (chat, generation, presentation, vision, images, shape, and the default), and which connection serves each feature for you now (effective), with what it cannot do. ownProviders false means this server uses only the AI its operator set up.",
1285
+ "name": "test_ai_key",
1286
+ "title": "Test an AI key",
1287
+ "description": "Test a saved AI provider key by its id. Administrators only.\n\nTest AI key. Tests a saved key (id) or one not yet saved (provider and apiKey): whether the provider is reached, takes the key, and its model answers and calls tools. A saved key keeps the outcome (last tested). Saves nothing else. The key goes only to the provider's own address. An unsaved key is a person's test. Administrators only.",
1614
1288
  "inputSchema": {
1615
1289
  "type": "object",
1616
- "properties": {},
1290
+ "properties": {
1291
+ "id": {
1292
+ "type": "string",
1293
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
1294
+ "description": "A key's id, from ai.keys.list."
1295
+ },
1296
+ "provider": {
1297
+ "type": "string",
1298
+ "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
1299
+ "description": "A model provider's id (for example meta or deepinfra), or a service beside the models (stability, google-cse, nounproject, deepgram)."
1300
+ },
1301
+ "apiKey": {
1302
+ "type": "string",
1303
+ "minLength": 1,
1304
+ "maxLength": 400,
1305
+ "writeOnly": true,
1306
+ "description": "Stored encrypted with the server's key-encryption key and never shown again. For nounproject: key:secret."
1307
+ },
1308
+ "model": {
1309
+ "type": "string",
1310
+ "maxLength": 200,
1311
+ "description": "For google-cse, the search engine ID (cx). For a key test, the model asked (the provider's first model by default)."
1312
+ },
1313
+ "confirm": {
1314
+ "type": "string",
1315
+ "pattern": "^cf_[A-Za-z0-9]{24}$",
1316
+ "description": "The confirmation id from a confirmation_required result, once the person agreed."
1317
+ },
1318
+ "idempotencyKey": {
1319
+ "type": "string",
1320
+ "pattern": "^[!-~]{1,128}$",
1321
+ "description": "Send with confirm: the idempotencyKey from the confirmation_required result."
1322
+ }
1323
+ },
1617
1324
  "additionalProperties": false
1618
1325
  },
1619
1326
  "annotations": {
1620
- "title": "Read your AI settings",
1327
+ "title": "Test an AI key",
1621
1328
  "readOnlyHint": true,
1622
1329
  "destructiveHint": false,
1623
1330
  "idempotentHint": true,
1624
- "openWorldHint": false
1331
+ "openWorldHint": true
1625
1332
  }
1626
1333
  }
1627
1334
  },
@@ -1629,7 +1336,7 @@
1629
1336
  "name": "ai.models.discover",
1630
1337
  "id": "ai.models.discover",
1631
1338
  "title": "Find AI models",
1632
- "summary": "Lists the models a server connection reports (GET <address>/models, OpenAI-compatible providers only), to fill in the model registry. Writes nothing; the key goes only to the connection's own address, with no redirects. Administrators only.",
1339
+ "summary": "Lists the models a provider reports (GET <address>/models, OpenAI-compatible providers), with its active key, to fill in the models. Writes nothing; the key goes only to the provider's own address, with no redirects. Administrators only.",
1633
1340
  "kind": "read",
1634
1341
  "readOnly": true,
1635
1342
  "destructive": false,
@@ -1643,28 +1350,28 @@
1643
1350
  "path": "/api/v1/ai/control/models/discover",
1644
1351
  "pathParams": [],
1645
1352
  "queryParams": [
1646
- "connection"
1353
+ "provider"
1647
1354
  ],
1648
1355
  "bodyParams": []
1649
1356
  },
1650
- "index": "ai.models.discover({connection}): Find AI models",
1357
+ "index": "ai.models.discover({provider}): Find AI models",
1651
1358
  "toolset": "admin",
1652
1359
  "types": [],
1653
- "dts": "declare namespace slatebox.ai.models {\n /** Find AI models. Lists the models a server connection reports (GET <address>/models, OpenAI-compatible providers only), to fill in the model registry. Writes nothing; the key goes only to the connection's own address, with no redirects. Administrators only. @scope ai:admin:read @openWorld */\n function discover(input: {\n connection: string;\n }): Promise<{\n connection?: string;\n ok?: boolean;\n models?: Array<Record<string, unknown>>;\n message?: string;\n [key: string]: unknown;\n }>;\n}",
1360
+ "dts": "declare namespace slatebox.ai.models {\n /** Find AI models. Lists the models a provider reports (GET <address>/models, OpenAI-compatible providers), with its active key, to fill in the models. Writes nothing; the key goes only to the provider's own address, with no redirects. Administrators only. @scope ai:admin:read @openWorld */\n function discover(input: {\n provider: string;\n }): Promise<{\n provider?: string;\n ok?: boolean;\n models?: Array<Record<string, unknown>>;\n message?: string;\n [key: string]: unknown;\n }>;\n}",
1654
1361
  "tool": {
1655
1362
  "name": "discover_ai_models",
1656
1363
  "title": "Find AI models",
1657
- "description": "List the models an AI connection reports. Writes nothing. Administrators only.\n\nFind AI models. Lists the models a server connection reports (GET <address>/models, OpenAI-compatible providers only), to fill in the model registry. Writes nothing; the key goes only to the connection's own address, with no redirects. Administrators only.",
1364
+ "description": "List the models an AI provider reports. Writes nothing. Administrators only.\n\nFind AI models. Lists the models a provider reports (GET <address>/models, OpenAI-compatible providers), with its active key, to fill in the models. Writes nothing; the key goes only to the provider's own address, with no redirects. Administrators only.",
1658
1365
  "inputSchema": {
1659
1366
  "type": "object",
1660
1367
  "properties": {
1661
- "connection": {
1368
+ "provider": {
1662
1369
  "type": "string",
1663
1370
  "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
1664
1371
  }
1665
1372
  },
1666
1373
  "required": [
1667
- "connection"
1374
+ "provider"
1668
1375
  ],
1669
1376
  "additionalProperties": false
1670
1377
  },
@@ -1681,7 +1388,7 @@
1681
1388
  "name": "ai.models.save",
1682
1389
  "id": "ai.models.save",
1683
1390
  "title": "Save AI models",
1684
- "summary": "Adds or changes models: the connection that serves each (server:<name> or builtin:<provider>), what it can do (tools, vision, json, images, reasoning), its context and output limits, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of bindings. Administrators only.",
1391
+ "summary": "Adds or changes models: the provider that serves each, its id and name, what it can do (tools, vision, json, images, reasoning), its longest answer, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of the parts of Slatebox. Administrators only.",
1685
1392
  "kind": "write",
1686
1393
  "readOnly": false,
1687
1394
  "destructive": false,
@@ -1705,11 +1412,11 @@
1705
1412
  "index": "ai.models.save({models,reason?}): Save AI models",
1706
1413
  "toolset": "admin",
1707
1414
  "types": [],
1708
- "dts": "declare namespace slatebox.ai.models {\n /** Save AI models. Adds or changes models: the connection that serves each (server:<name> or builtin:<provider>), what it can do (tools, vision, json, images, reasoning), its context and output limits, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of bindings. Administrators only. @scope ai:admin @confirm @idempotent */\n function save(input: {\n /** (1–50 items) */\n models: Array<{\n /** server:<connection> or builtin:deepinfra|openai|anthropic|stabilityai. */\n connection: string;\n /** (1–200 characters) */\n model: string;\n /** (at most 80 characters) */\n label?: string | null;\n /** What the model can do. A binding refuses a model whose flags miss what its surface needs. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n json?: boolean;\n images?: boolean;\n reasoning?: boolean;\n };\n /** (at least 1) */\n maxContext?: number | null;\n /** (at least 1) */\n maxOutput?: number | null;\n prices?: {\n /** Dollars per million input tokens. (at least 0) */\n inputPerM?: number | null;\n /** Dollars per million output tokens. (at least 0) */\n outputPerM?: number | null;\n /** Dollars per generated image. (at least 0) */\n imageEach?: number | null;\n currency?: \"USD\";\n } | null;\n status?: \"enabled\" | \"disabled\";\n }>;\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n models?: Array<Record<string, unknown>>;\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1415
+ "dts": "declare namespace slatebox.ai.models {\n /** Save AI models. Adds or changes models: the provider that serves each, its id and name, what it can do (tools, vision, json, images, reasoning), its longest answer, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of the parts of Slatebox. Administrators only. @scope ai:admin @confirm @idempotent */\n function save(input: {\n /** (1–50 items) */\n models: Array<{\n /** The provider that serves it (ai.control.get lists them). */\n provider: string;\n /** The id the provider serves, for example muse-ember-1.0. (1–200 characters) */\n model: string;\n /** The name shown, for example Muse Ember. (at most 80 characters) */\n label?: string | null;\n /** What the model can do. A part of Slatebox refuses a model whose flags miss what it needs. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n json?: boolean;\n images?: boolean;\n reasoning?: boolean;\n };\n /** (at least 1) */\n maxOutput?: number | null;\n prices?: {\n /** Dollars per million input tokens. (at least 0) */\n inputPerM?: number | null;\n /** Dollars per million output tokens. (at least 0) */\n outputPerM?: number | null;\n /** Dollars per generated image. (at least 0) */\n imageEach?: number | null;\n currency?: \"USD\";\n } | null;\n status?: \"enabled\" | \"disabled\";\n }>;\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n models?: Array<Record<string, unknown>>;\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1709
1416
  "tool": {
1710
1417
  "name": "save_ai_models",
1711
1418
  "title": "Save AI models",
1712
- "description": "Add or change AI models with what they can do and their prices. Administrators only; a person agrees first.\n\nSave AI models. Adds or changes models: the connection that serves each (server:<name> or builtin:<provider>), what it can do (tools, vision, json, images, reasoning), its context and output limits, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of bindings. Administrators only.",
1419
+ "description": "Add or change AI models with what they can do and their prices. Administrators only; a person agrees first.\n\nSave AI models. Adds or changes models: the provider that serves each, its id and name, what it can do (tools, vision, json, images, reasoning), its longest answer, and its prices in dollars per million input and output tokens (or per image). Metering charges these prices from the next call; a model with no price is charged at the dearest known rate and shown as unpriced. status disabled keeps a model out of the parts of Slatebox. Administrators only.",
1713
1420
  "inputSchema": {
1714
1421
  "type": "object",
1715
1422
  "properties": {
@@ -1720,22 +1427,24 @@
1720
1427
  "items": {
1721
1428
  "type": "object",
1722
1429
  "properties": {
1723
- "connection": {
1430
+ "provider": {
1724
1431
  "type": "string",
1725
- "pattern": "^(server|builtin):[a-z0-9][a-z0-9-]{0,39}$",
1726
- "description": "server:<connection> or builtin:deepinfra|openai|anthropic|stabilityai."
1432
+ "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
1433
+ "description": "The provider that serves it (ai.control.get lists them)."
1727
1434
  },
1728
1435
  "model": {
1729
1436
  "type": "string",
1730
1437
  "minLength": 1,
1731
- "maxLength": 200
1438
+ "maxLength": 200,
1439
+ "description": "The id the provider serves, for example muse-ember-1.0."
1732
1440
  },
1733
1441
  "label": {
1734
1442
  "type": [
1735
1443
  "string",
1736
1444
  "null"
1737
1445
  ],
1738
- "maxLength": 80
1446
+ "maxLength": 80,
1447
+ "description": "The name shown, for example Muse Ember."
1739
1448
  },
1740
1449
  "capabilities": {
1741
1450
  "type": "object",
@@ -1757,14 +1466,7 @@
1757
1466
  }
1758
1467
  },
1759
1468
  "additionalProperties": false,
1760
- "description": "What the model can do. A binding refuses a model whose flags miss what its surface needs."
1761
- },
1762
- "maxContext": {
1763
- "type": [
1764
- "integer",
1765
- "null"
1766
- ],
1767
- "minimum": 1
1469
+ "description": "What the model can do. A part of Slatebox refuses a model whose flags miss what it needs."
1768
1470
  },
1769
1471
  "maxOutput": {
1770
1472
  "type": [
@@ -1821,7 +1523,7 @@
1821
1523
  }
1822
1524
  },
1823
1525
  "required": [
1824
- "connection",
1526
+ "provider",
1825
1527
  "model"
1826
1528
  ],
1827
1529
  "additionalProperties": false
@@ -1858,6 +1560,72 @@
1858
1560
  }
1859
1561
  }
1860
1562
  },
1563
+ {
1564
+ "name": "ai.models.test",
1565
+ "id": "ai.models.test",
1566
+ "title": "Test AI model",
1567
+ "summary": "Sends one short request to a model with its provider's active key: whether it answers and calls tools. Writes nothing. Administrators only.",
1568
+ "kind": "write",
1569
+ "readOnly": true,
1570
+ "destructive": false,
1571
+ "openWorld": true,
1572
+ "confirm": false,
1573
+ "scope": "ai:admin",
1574
+ "modes": [
1575
+ "save"
1576
+ ],
1577
+ "idempotency": "optional",
1578
+ "http": {
1579
+ "method": "POST",
1580
+ "path": "/api/v1/ai/control/models/test",
1581
+ "pathParams": [],
1582
+ "queryParams": [],
1583
+ "bodyParams": [
1584
+ "id"
1585
+ ]
1586
+ },
1587
+ "index": "ai.models.test({id}): Test AI model",
1588
+ "toolset": "admin",
1589
+ "types": [],
1590
+ "dts": "declare namespace slatebox.ai.models {\n /** Test AI model. Sends one short request to a model with its provider's active key: whether it answers and calls tools. Writes nothing. Administrators only. @scope ai:admin @openWorld @idempotent */\n function test(input: {\n /** A model's id: <provider>:<model>, for example meta:muse-ember-1.0. (3–260 characters) */\n id: string;\n }): Promise<({\n id?: string;\n ok?: boolean;\n tools?: string;\n message?: string;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1591
+ "tool": {
1592
+ "name": "test_ai_model",
1593
+ "title": "Test an AI model",
1594
+ "description": "Send one short request to an AI model to see that it answers. Administrators only.\n\nTest AI model. Sends one short request to a model with its provider's active key: whether it answers and calls tools. Writes nothing. Administrators only.",
1595
+ "inputSchema": {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "id": {
1599
+ "type": "string",
1600
+ "minLength": 3,
1601
+ "maxLength": 260,
1602
+ "description": "A model's id: <provider>:<model>, for example meta:muse-ember-1.0."
1603
+ },
1604
+ "confirm": {
1605
+ "type": "string",
1606
+ "pattern": "^cf_[A-Za-z0-9]{24}$",
1607
+ "description": "The confirmation id from a confirmation_required result, once the person agreed."
1608
+ },
1609
+ "idempotencyKey": {
1610
+ "type": "string",
1611
+ "pattern": "^[!-~]{1,128}$",
1612
+ "description": "Send with confirm: the idempotencyKey from the confirmation_required result."
1613
+ }
1614
+ },
1615
+ "required": [
1616
+ "id"
1617
+ ],
1618
+ "additionalProperties": false
1619
+ },
1620
+ "annotations": {
1621
+ "title": "Test an AI model",
1622
+ "readOnlyHint": true,
1623
+ "destructiveHint": false,
1624
+ "idempotentHint": true,
1625
+ "openWorldHint": true
1626
+ }
1627
+ }
1628
+ },
1861
1629
  {
1862
1630
  "name": "ai.prompts.get",
1863
1631
  "id": "ai.prompts.get",
@@ -1883,7 +1651,7 @@
1883
1651
  "index": "ai.prompts.get({id}): AI prompt",
1884
1652
  "toolset": "admin",
1885
1653
  "types": [],
1886
- "dts": "declare namespace slatebox.ai.prompts {\n /** AI prompt. Returns one prompt: the built-in text (version 0), the text served now and where it comes from, every saved version newest first with its author, note and eval results, the values it may use, and the samples a test run can send. Administrators only. @scope ai:admin:read */\n function get(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n }): Promise<{\n id?: string;\n code?: Record<string, unknown>;\n live?: Record<string, unknown>;\n versions?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }>;\n}",
1654
+ "dts": "declare namespace slatebox.ai.prompts {\n /** AI prompt. Returns one prompt: the built-in text (version 0), the text served now and where it comes from, every saved version newest first with its author, note and eval results, the values it may use, and the samples a test run can send. Administrators only. @scope ai:admin:read */\n function get(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.writes\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n }): Promise<{\n id?: string;\n code?: Record<string, unknown>;\n live?: Record<string, unknown>;\n versions?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }>;\n}",
1887
1655
  "tool": {
1888
1656
  "name": "get_ai_prompt",
1889
1657
  "title": "Read an AI prompt",
@@ -1936,6 +1704,7 @@
1936
1704
  "library.refine.retry",
1937
1705
  "tool.propose_library_refinement",
1938
1706
  "connectors.plan.system",
1707
+ "connectors.plan.writes",
1939
1708
  "connectors.plan.next",
1940
1709
  "connectors.plan.tool",
1941
1710
  "connectors.layout.system",
@@ -2041,7 +1810,7 @@
2041
1810
  "index": "ai.prompts.render({id,version?,body?,wrap?,sample?}): Render AI prompt",
2042
1811
  "toolset": "admin",
2043
1812
  "types": [],
2044
- "dts": "declare namespace slatebox.ai.prompts {\n /** Render AI prompt. Renders a prompt version (or text sent with the call) into the request a built-in sample sends, and reports its lint findings. No model is called and nothing is saved. Administrators only. @scope ai:admin:read @idempotent */\n function render(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** A saved version; 0 is the built-in text. (at least 0) */\n version?: number;\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body?: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A built-in sample (ai.prompts.get lists them). Default: the first. (at most 40 characters) */\n sample?: string;\n }): Promise<({\n sample?: string | null;\n rendered?: Record<string, unknown> | null;\n lint?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1813
+ "dts": "declare namespace slatebox.ai.prompts {\n /** Render AI prompt. Renders a prompt version (or text sent with the call) into the request a built-in sample sends, and reports its lint findings. No model is called and nothing is saved. Administrators only. @scope ai:admin:read @idempotent */\n function render(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.writes\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** A saved version; 0 is the built-in text. (at least 0) */\n version?: number;\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body?: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A built-in sample (ai.prompts.get lists them). Default: the first. (at most 40 characters) */\n sample?: string;\n }): Promise<({\n sample?: string | null;\n rendered?: Record<string, unknown> | null;\n lint?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2045
1814
  "tool": {
2046
1815
  "name": "render_ai_prompt",
2047
1816
  "title": "Render an AI prompt",
@@ -2094,6 +1863,7 @@
2094
1863
  "library.refine.retry",
2095
1864
  "tool.propose_library_refinement",
2096
1865
  "connectors.plan.system",
1866
+ "connectors.plan.writes",
2097
1867
  "connectors.plan.next",
2098
1868
  "connectors.plan.tool",
2099
1869
  "connectors.layout.system",
@@ -2193,7 +1963,7 @@
2193
1963
  "index": "ai.prompts.saveDraft({id,body,wrap?,note?,basedOn?}): Save AI prompt draft",
2194
1964
  "toolset": "admin",
2195
1965
  "types": [],
2196
- "dts": "declare namespace slatebox.ai.prompts {\n /** Save AI prompt draft. Saves a new draft version of a prompt. Changes nothing live: a person publishes it after its checks pass. An agent's draft is marked as a suggestion. Returns the version and its lint findings. Administrators only. @scope ai:admin */\n function saveDraft(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A short note kept with the version. (at most 200 characters) */\n note?: string;\n /** The version the text was edited from (0: the built-in text). A draft edited from a suggestion stays marked as one when it is published. (at least 0) */\n basedOn?: number;\n }): Promise<({\n id?: string;\n version?: number;\n status?: string;\n origin?: string;\n lint?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
1966
+ "dts": "declare namespace slatebox.ai.prompts {\n /** Save AI prompt draft. Saves a new draft version of a prompt. Changes nothing live: a person publishes it after its checks pass. An agent's draft is marked as a suggestion. Returns the version and its lint findings. Administrators only. @scope ai:admin */\n function saveDraft(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.writes\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A short note kept with the version. (at most 200 characters) */\n note?: string;\n /** The version the text was edited from (0: the built-in text). A draft edited from a suggestion stays marked as one when it is published. (at least 0) */\n basedOn?: number;\n }): Promise<({\n id?: string;\n version?: number;\n status?: string;\n origin?: string;\n lint?: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2197
1967
  "tool": {
2198
1968
  "name": "save_ai_prompt_draft",
2199
1969
  "title": "Save an AI prompt draft",
@@ -2246,6 +2016,7 @@
2246
2016
  "library.refine.retry",
2247
2017
  "tool.propose_library_refinement",
2248
2018
  "connectors.plan.system",
2019
+ "connectors.plan.writes",
2249
2020
  "connectors.plan.next",
2250
2021
  "connectors.plan.tool",
2251
2022
  "connectors.layout.system",
@@ -2347,7 +2118,7 @@
2347
2118
  "index": "ai.prompts.test({id,version?,body?,wrap?,…}): Test AI prompt",
2348
2119
  "toolset": "admin",
2349
2120
  "types": [],
2350
- "dts": "declare namespace slatebox.ai.prompts {\n /** Test AI prompt. Sends a prompt version (or text sent with the call) with a built-in sample through a part of Slatebox's binding (default: the prompt's own). Returns the request sent, the raw answer, whether that part could use it, the model, latency and cost. The answer is shown, never applied. Metered to the caller; 30 an hour per administrator. Administrators only. @scope ai:admin */\n function test(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** A saved version; 0 is the built-in text. (at least 0) */\n version?: number;\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body?: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A built-in sample (ai.prompts.get lists them). Default: the first. (at most 40 characters) */\n sample?: string;\n /** Whose binding (model chain) to test against. */\n surface?: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n }): Promise<({\n rendered?: Record<string, unknown>;\n answer?: Record<string, unknown>;\n parses?: Record<string, unknown>;\n latencyMs?: number;\n model?: string | null;\n costMicros?: number;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2121
+ "dts": "declare namespace slatebox.ai.prompts {\n /** Test AI prompt. Sends a prompt version (or text sent with the call) with a built-in sample through a part of Slatebox's binding (default: the prompt's own). Returns the request sent, the raw answer, whether that part could use it, the model, latency and cost. The answer is shown, never applied. Metered to the caller; 30 an hour per administrator. Administrators only. @scope ai:admin */\n function test(input: {\n /** The prompt, for example shape.system. */\n id: \"shape.system\" | \"shape.user\" | \"shape.retry\" | \"tool.propose_shapes\" | \"workshop.map.system\" | \"workshop.lane.system\" | \"workshop.chat.retry\" | \"tool.propose_map_edits\" | \"tool.propose_workshop_edits\" | \"workshop.draft.system\" | \"workshop.draft.map\" | \"workshop.draft.release\" | \"workshop.draft.rules\" | \"workshop.draft.retry\" | \"workshop.draft.repair\" | \"tool.draft_workshop\" | \"tool.draft_concept_map\" | \"tool.draft_release_plan\" | \"tool.revise_workshop_rules\" | \"exec.chat.system\" | \"exec.chat.fix\" | \"exec.chat.retry\" | \"agent.request.notes\" | \"presentation.segments\" | \"presentation.art\" | \"presentation.system\" | \"presentation.system.dynamic\" | \"presentation.system.slides\" | \"presentation.system.template\" | \"presentation.slate\" | \"presentation.user\" | \"presentation.brief\" | \"presentation.refine\" | \"tool.create-presentation\" | \"tool.create-presentation.image-query\" | \"tool.create-presentation.image-prompt\" | \"tool.create-presentation.image-why\" | \"library.refine.system\" | \"library.refine.request\" | \"library.refine.retry\" | \"tool.propose_library_refinement\" | \"connectors.plan.system\" | \"connectors.plan.writes\" | \"connectors.plan.next\" | \"connectors.plan.tool\" | \"connectors.layout.system\" | \"connectors.layout.budget\" | \"connectors.layout.tool\" | \"connectors.recipe.github\" | \"connectors.recipe.linear\" | \"connectors.recipe.huggingface\" | \"connectors.recipe.deepwiki\" | \"connectors.recipe.context7\" | \"connectors.recipe.wolfram\" | \"connectors.recipe.firecrawl\" | \"connectors.recipe.exa\";\n /** A saved version; 0 is the built-in text. (at least 0) */\n version?: number;\n /** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */\n body?: string;\n /** Per value: data encloses it in a <data> block so it reads as data, not instructions. */\n wrap?: Record<string, \"none\" | \"data\">;\n /** A built-in sample (ai.prompts.get lists them). Default: the first. (at most 40 characters) */\n sample?: string;\n /** Whose binding (model chain) to test against. */\n surface?: \"default\" | \"chat\" | \"chat.route\" | \"generation\" | \"presentation\" | \"vision\" | \"images\" | \"shape\" | \"workshop\" | \"workshop.draft\" | \"canvas\" | \"agent.slatebox\" | \"library\" | \"connectors\";\n }): Promise<({\n rendered?: Record<string, unknown>;\n answer?: Record<string, unknown>;\n parses?: Record<string, unknown>;\n latencyMs?: number;\n model?: string | null;\n costMicros?: number;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2351
2122
  "tool": {
2352
2123
  "name": "test_ai_prompt",
2353
2124
  "title": "Test an AI prompt",
@@ -2400,6 +2171,7 @@
2400
2171
  "library.refine.retry",
2401
2172
  "tool.propose_library_refinement",
2402
2173
  "connectors.plan.system",
2174
+ "connectors.plan.writes",
2403
2175
  "connectors.plan.next",
2404
2176
  "connectors.plan.tool",
2405
2177
  "connectors.layout.system",
@@ -2489,10 +2261,10 @@
2489
2261
  }
2490
2262
  },
2491
2263
  {
2492
- "name": "ai.providers.save",
2493
- "id": "ai.providers.save",
2494
- "title": "Save AI provider",
2495
- "summary": "Adds or changes a provider template: its wire protocol (openai-chat, anthropic-messages or openai-images), address, how the key is sent (bearer, a header, a query parameter or none), extra headers (nothing secret) and what its models can usually do. Built-in providers cannot be changed. Changing an address removes the keys of the connections that use it, after dropKeys true; a key is never sent to a new address. Only a person sets an address, key style or headers. Administrators only.",
2264
+ "name": "ai.providers.add",
2265
+ "id": "ai.providers.add",
2266
+ "title": "Add AI provider",
2267
+ "summary": "Adds a model provider from a preset: meta (Meta Muse, https://api.meta.ai/v1), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other with its own OpenAI-compatible address. A named preset keeps its own address and key style. models: the preset's suggested model ids to add with their prices. Add its key with ai.keys.add. Only a person adds an Other provider (it chooses where keys go). Administrators only.",
2496
2268
  "kind": "write",
2497
2269
  "readOnly": false,
2498
2270
  "destructive": false,
@@ -2504,60 +2276,63 @@
2504
2276
  ],
2505
2277
  "idempotency": "optional",
2506
2278
  "http": {
2507
- "method": "PUT",
2279
+ "method": "POST",
2508
2280
  "path": "/api/v1/ai/control/providers",
2509
2281
  "pathParams": [],
2510
2282
  "queryParams": [],
2511
2283
  "bodyParams": [
2512
2284
  "provider",
2513
- "dropKeys",
2285
+ "models",
2514
2286
  "reason"
2515
2287
  ]
2516
2288
  },
2517
- "index": "ai.providers.save({provider,dropKeys?,reason?}): Save AI provider",
2289
+ "index": "ai.providers.add({provider,models?,reason?}): Add AI provider",
2518
2290
  "toolset": "admin",
2519
2291
  "types": [],
2520
- "dts": "declare namespace slatebox.ai.providers {\n /** Save AI provider. Adds or changes a provider template: its wire protocol (openai-chat, anthropic-messages or openai-images), address, how the key is sent (bearer, a header, a query parameter or none), extra headers (nothing secret) and what its models can usually do. Built-in providers cannot be changed. Changing an address removes the keys of the connections that use it, after dropKeys true; a key is never sent to a new address. Only a person sets an address, key style or headers. Administrators only. @scope ai:admin @confirm @idempotent */\n function save(input: {\n provider: {\n /** The provider's id, for example gemini. Built-in ids cannot be used. */\n id: string;\n /** (1–80 characters) */\n label: string;\n /** The wire protocol it speaks. Gemini, Meta, Mistral, OpenRouter, Groq, Together, Ollama and vLLM speak openai-chat. */\n protocol: \"openai-chat\" | \"anthropic-messages\" | \"openai-images\";\n /** The address up to /v1. null: each connection gives its own. (at most 500 characters) */\n baseUrl?: string | null;\n /** Connections of this provider keep its address (default true when an address is given). */\n baseUrlLocked?: boolean;\n /** How the key is sent: bearer (Authorization: Bearer), header { name }, query { name } or none. */\n auth?: {\n style: \"bearer\" | \"header\" | \"query\" | \"none\";\n /** (at most 64 characters) */\n name?: string;\n };\n /** Headers sent with every request. Nothing secret: names that look like credentials are refused. */\n extraHeaders?: Record<string, string>;\n keyRequired?: boolean;\n modelOptional?: boolean;\n /** What its models can usually do; a connection or model may say otherwise. */\n defaultCapabilities?: {\n tools?: boolean;\n vision?: boolean;\n json?: boolean;\n images?: boolean;\n reasoning?: boolean;\n };\n };\n /** Go ahead with an address change that removes connections' keys. */\n dropKeys?: boolean;\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n provider?: Record<string, unknown>;\n droppedKeys?: string[];\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2292
+ "dts": "declare namespace slatebox.ai.providers {\n /** Add AI provider. Adds a model provider from a preset: meta (Meta Muse, https://api.meta.ai/v1), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other with its own OpenAI-compatible address. A named preset keeps its own address and key style. models: the preset's suggested model ids to add with their prices. Add its key with ai.keys.add. Only a person adds an Other provider (it chooses where keys go). Administrators only. @scope ai:admin @confirm */\n function add(input: {\n provider: {\n /** What the provider is: meta (Muse), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other (any OpenAI-compatible address). */\n preset: \"meta\" | \"openai\" | \"anthropic\" | \"deepinfra\" | \"together\" | \"groq\" | \"fireworks\" | \"openrouter\" | \"mistral\" | \"xai\" | \"gemini\" | \"other\";\n /** Its id here; the preset's by default (meta, deepinfra, ...). */\n id?: string;\n /** The name shown; the preset's by default. (1–80 characters) */\n label?: string;\n /** For other only: the address up to /v1. Named presets keep their own address. (at most 500 characters) */\n baseUrl?: string;\n /** For other only: bearer (Authorization: Bearer), header { name } or none. */\n auth?: {\n style: \"bearer\" | \"header\" | \"none\";\n /** (at most 64 characters) */\n name?: string;\n };\n /** For other only: how it takes a forced tool call. */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n /** For other only: headers sent with every request. Nothing secret. */\n extraHeaders?: Record<string, string>;\n };\n /** Suggested model ids of the preset to add too. (at most 20 items) */\n models?: string[];\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n provider?: Record<string, unknown>;\n models?: Array<Record<string, unknown>>;\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2521
2293
  "tool": {
2522
- "name": "save_ai_provider",
2523
- "title": "Save an AI provider",
2524
- "description": "Add or change an AI provider template (wire protocol, address, key style). Administrators only; a person agrees first.\n\nSave AI provider. Adds or changes a provider template: its wire protocol (openai-chat, anthropic-messages or openai-images), address, how the key is sent (bearer, a header, a query parameter or none), extra headers (nothing secret) and what its models can usually do. Built-in providers cannot be changed. Changing an address removes the keys of the connections that use it, after dropKeys true; a key is never sent to a new address. Only a person sets an address, key style or headers. Administrators only.",
2294
+ "name": "add_ai_provider",
2295
+ "title": "Add an AI provider",
2296
+ "description": "Add a model provider (Meta, OpenAI, DeepInfra, ...) from its preset. Administrators only; a person agrees first.\n\nAdd AI provider. Adds a model provider from a preset: meta (Meta Muse, https://api.meta.ai/v1), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other with its own OpenAI-compatible address. A named preset keeps its own address and key style. models: the preset's suggested model ids to add with their prices. Add its key with ai.keys.add. Only a person adds an Other provider (it chooses where keys go). Administrators only.",
2525
2297
  "inputSchema": {
2526
2298
  "type": "object",
2527
2299
  "properties": {
2528
2300
  "provider": {
2529
2301
  "type": "object",
2530
2302
  "properties": {
2303
+ "preset": {
2304
+ "type": "string",
2305
+ "enum": [
2306
+ "meta",
2307
+ "openai",
2308
+ "anthropic",
2309
+ "deepinfra",
2310
+ "together",
2311
+ "groq",
2312
+ "fireworks",
2313
+ "openrouter",
2314
+ "mistral",
2315
+ "xai",
2316
+ "gemini",
2317
+ "other"
2318
+ ],
2319
+ "description": "What the provider is: meta (Muse), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other (any OpenAI-compatible address)."
2320
+ },
2531
2321
  "id": {
2532
2322
  "type": "string",
2533
2323
  "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
2534
- "description": "The provider's id, for example gemini. Built-in ids cannot be used."
2324
+ "description": "Its id here; the preset's by default (meta, deepinfra, ...)."
2535
2325
  },
2536
2326
  "label": {
2537
2327
  "type": "string",
2538
2328
  "minLength": 1,
2539
- "maxLength": 80
2540
- },
2541
- "protocol": {
2542
- "type": "string",
2543
- "enum": [
2544
- "openai-chat",
2545
- "anthropic-messages",
2546
- "openai-images"
2547
- ],
2548
- "description": "The wire protocol it speaks. Gemini, Meta, Mistral, OpenRouter, Groq, Together, Ollama and vLLM speak openai-chat."
2329
+ "maxLength": 80,
2330
+ "description": "The name shown; the preset's by default."
2549
2331
  },
2550
2332
  "baseUrl": {
2551
- "type": [
2552
- "string",
2553
- "null"
2554
- ],
2333
+ "type": "string",
2555
2334
  "maxLength": 500,
2556
- "description": "The address up to /v1. null: each connection gives its own."
2557
- },
2558
- "baseUrlLocked": {
2559
- "type": "boolean",
2560
- "description": "Connections of this provider keep its address (default true when an address is given)."
2335
+ "description": "For other only: the address up to /v1. Named presets keep their own address."
2561
2336
  },
2562
2337
  "auth": {
2563
2338
  "type": "object",
@@ -2567,7 +2342,6 @@
2567
2342
  "enum": [
2568
2343
  "bearer",
2569
2344
  "header",
2570
- "query",
2571
2345
  "none"
2572
2346
  ]
2573
2347
  },
@@ -2580,7 +2354,16 @@
2580
2354
  "style"
2581
2355
  ],
2582
2356
  "additionalProperties": false,
2583
- "description": "How the key is sent: bearer (Authorization: Bearer), header { name }, query { name } or none."
2357
+ "description": "For other only: bearer (Authorization: Bearer), header { name } or none."
2358
+ },
2359
+ "toolChoice": {
2360
+ "type": "string",
2361
+ "enum": [
2362
+ "auto",
2363
+ "named",
2364
+ "required"
2365
+ ],
2366
+ "description": "For other only: how it takes a forced tool call."
2584
2367
  },
2585
2368
  "extraHeaders": {
2586
2369
  "type": "object",
@@ -2589,47 +2372,157 @@
2589
2372
  "maxLength": 200
2590
2373
  },
2591
2374
  "maxProperties": 10,
2592
- "description": "Headers sent with every request. Nothing secret: names that look like credentials are refused."
2375
+ "description": "For other only: headers sent with every request. Nothing secret."
2376
+ }
2377
+ },
2378
+ "required": [
2379
+ "preset"
2380
+ ],
2381
+ "additionalProperties": false
2382
+ },
2383
+ "models": {
2384
+ "type": "array",
2385
+ "maxItems": 20,
2386
+ "items": {
2387
+ "type": "string",
2388
+ "maxLength": 200
2389
+ },
2390
+ "description": "Suggested model ids of the preset to add too."
2391
+ },
2392
+ "reason": {
2393
+ "type": "string",
2394
+ "minLength": 1,
2395
+ "maxLength": 500,
2396
+ "description": "Why, for the change history."
2397
+ },
2398
+ "confirm": {
2399
+ "type": "string",
2400
+ "pattern": "^cf_[A-Za-z0-9]{24}$",
2401
+ "description": "The confirmation id from a confirmation_required result, once the person agreed."
2402
+ },
2403
+ "idempotencyKey": {
2404
+ "type": "string",
2405
+ "pattern": "^[!-~]{1,128}$",
2406
+ "description": "Send with confirm: the idempotencyKey from the confirmation_required result."
2407
+ }
2408
+ },
2409
+ "required": [
2410
+ "provider"
2411
+ ],
2412
+ "additionalProperties": false
2413
+ },
2414
+ "annotations": {
2415
+ "title": "Add an AI provider",
2416
+ "readOnlyHint": false,
2417
+ "destructiveHint": false,
2418
+ "idempotentHint": false,
2419
+ "openWorldHint": false
2420
+ }
2421
+ }
2422
+ },
2423
+ {
2424
+ "name": "ai.providers.save",
2425
+ "id": "ai.providers.save",
2426
+ "title": "Change AI provider",
2427
+ "summary": "Changes a provider's name, or an Other provider's address, key style, tool choice and extra headers (nothing secret). A new address or key style revokes the provider's keys, after revokeKeys true: a key is never sent to a new address. Only a person changes where keys go. Administrators only.",
2428
+ "kind": "write",
2429
+ "readOnly": false,
2430
+ "destructive": false,
2431
+ "openWorld": false,
2432
+ "confirm": true,
2433
+ "scope": "ai:admin",
2434
+ "modes": [
2435
+ "save"
2436
+ ],
2437
+ "idempotency": "optional",
2438
+ "http": {
2439
+ "method": "PUT",
2440
+ "path": "/api/v1/ai/control/providers",
2441
+ "pathParams": [],
2442
+ "queryParams": [],
2443
+ "bodyParams": [
2444
+ "provider",
2445
+ "revokeKeys",
2446
+ "reason"
2447
+ ]
2448
+ },
2449
+ "index": "ai.providers.save({provider,revokeKeys?,reason?}): Change AI provider",
2450
+ "toolset": "admin",
2451
+ "types": [],
2452
+ "dts": "declare namespace slatebox.ai.providers {\n /** Change AI provider. Changes a provider's name, or an Other provider's address, key style, tool choice and extra headers (nothing secret). A new address or key style revokes the provider's keys, after revokeKeys true: a key is never sent to a new address. Only a person changes where keys go. Administrators only. @scope ai:admin @confirm @idempotent */\n function save(input: {\n provider: {\n id: string;\n /** (1–80 characters) */\n label?: string;\n /** Other providers only. A new address revokes the provider's keys (send revokeKeys true). (at most 500 characters) */\n baseUrl?: string;\n /** For other only: bearer (Authorization: Bearer), header { name } or none. */\n auth?: {\n style: \"bearer\" | \"header\" | \"none\";\n /** (at most 64 characters) */\n name?: string;\n };\n /** For other only: how it takes a forced tool call. */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n /** For other only: headers sent with every request. Nothing secret. */\n extraHeaders?: Record<string, string>;\n };\n /** Go ahead with a change that revokes the provider's keys. */\n revokeKeys?: boolean;\n /** Why, for the change history. (1–500 characters) */\n reason?: string;\n }): Promise<({\n provider?: Record<string, unknown>;\n revokedKeys?: string[];\n generation?: number | null;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2453
+ "tool": {
2454
+ "name": "save_ai_provider",
2455
+ "title": "Change an AI provider",
2456
+ "description": "Rename an AI provider, or change an Other provider's address. Administrators only; a person agrees first.\n\nChange AI provider. Changes a provider's name, or an Other provider's address, key style, tool choice and extra headers (nothing secret). A new address or key style revokes the provider's keys, after revokeKeys true: a key is never sent to a new address. Only a person changes where keys go. Administrators only.",
2457
+ "inputSchema": {
2458
+ "type": "object",
2459
+ "properties": {
2460
+ "provider": {
2461
+ "type": "object",
2462
+ "properties": {
2463
+ "id": {
2464
+ "type": "string",
2465
+ "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
2593
2466
  },
2594
- "keyRequired": {
2595
- "type": "boolean"
2467
+ "label": {
2468
+ "type": "string",
2469
+ "minLength": 1,
2470
+ "maxLength": 80
2596
2471
  },
2597
- "modelOptional": {
2598
- "type": "boolean"
2472
+ "baseUrl": {
2473
+ "type": "string",
2474
+ "maxLength": 500,
2475
+ "description": "Other providers only. A new address revokes the provider's keys (send revokeKeys true)."
2599
2476
  },
2600
- "defaultCapabilities": {
2477
+ "auth": {
2601
2478
  "type": "object",
2602
2479
  "properties": {
2603
- "tools": {
2604
- "type": "boolean"
2605
- },
2606
- "vision": {
2607
- "type": "boolean"
2608
- },
2609
- "json": {
2610
- "type": "boolean"
2611
- },
2612
- "images": {
2613
- "type": "boolean"
2480
+ "style": {
2481
+ "type": "string",
2482
+ "enum": [
2483
+ "bearer",
2484
+ "header",
2485
+ "none"
2486
+ ]
2614
2487
  },
2615
- "reasoning": {
2616
- "type": "boolean"
2488
+ "name": {
2489
+ "type": "string",
2490
+ "maxLength": 64
2617
2491
  }
2618
2492
  },
2493
+ "required": [
2494
+ "style"
2495
+ ],
2619
2496
  "additionalProperties": false,
2620
- "description": "What its models can usually do; a connection or model may say otherwise."
2497
+ "description": "For other only: bearer (Authorization: Bearer), header { name } or none."
2498
+ },
2499
+ "toolChoice": {
2500
+ "type": "string",
2501
+ "enum": [
2502
+ "auto",
2503
+ "named",
2504
+ "required"
2505
+ ],
2506
+ "description": "For other only: how it takes a forced tool call."
2507
+ },
2508
+ "extraHeaders": {
2509
+ "type": "object",
2510
+ "additionalProperties": {
2511
+ "type": "string",
2512
+ "maxLength": 200
2513
+ },
2514
+ "maxProperties": 10,
2515
+ "description": "For other only: headers sent with every request. Nothing secret."
2621
2516
  }
2622
2517
  },
2623
2518
  "required": [
2624
- "id",
2625
- "label",
2626
- "protocol"
2519
+ "id"
2627
2520
  ],
2628
2521
  "additionalProperties": false
2629
2522
  },
2630
- "dropKeys": {
2523
+ "revokeKeys": {
2631
2524
  "type": "boolean",
2632
- "description": "Go ahead with an address change that removes connections' keys."
2525
+ "description": "Go ahead with a change that revokes the provider's keys."
2633
2526
  },
2634
2527
  "reason": {
2635
2528
  "type": "string",
@@ -2654,7 +2547,7 @@
2654
2547
  "additionalProperties": false
2655
2548
  },
2656
2549
  "annotations": {
2657
- "title": "Save an AI provider",
2550
+ "title": "Change an AI provider",
2658
2551
  "readOnlyHint": false,
2659
2552
  "destructiveHint": false,
2660
2553
  "idempotentHint": true,
@@ -2666,7 +2559,7 @@
2666
2559
  "name": "ai.update",
2667
2560
  "id": "ai.update",
2668
2561
  "title": "Set AI",
2669
- "summary": "Adds or changes AI connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins), server this server's (administrators; ownProviders on or off lets people use their own). Mix freely: a choice names me:<name>, team:<name>, server:<name> or builtin. Keys are stored encrypted and never returned, and a run's record keeps its code with the apiKey replaced. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups.",
2562
+ "summary": "Your own or your team's AI on a self-hosted server: adds or changes connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins); level server only turns own AI on or off for everyone (ownProviders, administrators). A choice names me:<name>, team:<name>, or builtin for this server's model (set in Admin → AI control). Keys are stored encrypted and never returned. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups.",
2670
2563
  "kind": "write",
2671
2564
  "readOnly": false,
2672
2565
  "destructive": true,
@@ -2692,11 +2585,11 @@
2692
2585
  },
2693
2586
  "index": "ai.update({level,connections?,remove?,use?,ownProviders?}): Set AI",
2694
2587
  "types": [],
2695
- "dts": "declare namespace slatebox.ai {\n /** Set AI. Adds or changes AI connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins), server this server's (administrators; ownProviders on or off lets people use their own). Mix freely: a choice names me:<name>, team:<name>, server:<name> or builtin. Keys are stored encrypted and never returned, and a run's record keeps its code with the apiKey replaced. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups. @scope ai:settings @destructive @confirm @idempotent */\n function update(input: {\n /** me (yours), team (team admins) or server (administrators). */\n level: \"me\" | \"team\" | \"server\";\n /** (at most 20 items) */\n connections?: Array<{\n /** Your name for it, for example desk-model. */\n name: string;\n /** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), openai, anthropic, deepinfra, or one an administrator added (ai.control.get lists them). */\n type: string;\n /** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */\n baseUrl?: string;\n /** The model name the endpoint serves. (at most 200 characters) */\n model?: string;\n /** Stored encrypted and never shown again. Leave it out to keep the saved key; send an empty string to remove it. (at most 400 characters) */\n apiKey?: string;\n /** What the model can do, where you know it. Unset means try it; making images needs images: true. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n images?: boolean;\n };\n /** (256 to 200000) */\n maxTokens?: number;\n /** How the endpoint takes a forced tool call: named (the function by name), required (any tool, for an endpoint with no named form) or auto (the model decides, for an endpoint that refuses the others). */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n }>;\n /** (at most 20 items) */\n remove?: string[];\n /** Which connection each feature uses. An unset feature follows the one it belongs to (workshop follows chat), and default serves every feature not named. */\n use?: {\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n default?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n chat?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n \"chat.route\"?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n generation?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n \"generation.notes\"?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n presentation?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n vision?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n images?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n shape?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n workshop?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n \"workshop.draft\"?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n canvas?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n \"agent.slatebox\"?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n library?: string | null;\n /** me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear. (at most 48 characters) */\n connectors?: string | null;\n };\n ownProviders?: \"on\" | \"off\";\n }): Promise<({\n features: Array<Record<string, unknown>>;\n /** Every feature and part a choice may name, with the one it follows while unset. */\n surfaces?: Array<Record<string, unknown>>;\n useKeys?: string[];\n ownProviders: boolean;\n keysAvailable?: boolean;\n hosted?: boolean;\n mine?: Record<string, unknown> | null;\n team?: Record<string, unknown> | null;\n server: Record<string, unknown>;\n effective: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2588
+ "dts": "declare namespace slatebox.ai {\n /** Set AI. Your own or your team's AI on a self-hosted server: adds or changes connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins); level server only turns own AI on or off for everyone (ownProviders, administrators). A choice names me:<name>, team:<name>, or builtin for this server's model (set in Admin → AI control). Keys are stored encrypted and never returned. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups. @scope ai:settings @destructive @confirm @idempotent */\n function update(input: {\n /** me (yours), team (team admins) or server (administrators). */\n level: \"me\" | \"team\" | \"server\";\n /** (at most 20 items) */\n connections?: Array<{\n /** Your name for it, for example desk-model. */\n name: string;\n /** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added. */\n type: string;\n /** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */\n baseUrl?: string;\n /** The model name the endpoint serves. (at most 200 characters) */\n model?: string;\n /** Stored encrypted and never shown again. Leave it out to keep the saved key; send an empty string to remove it. (at most 400 characters) */\n apiKey?: string;\n /** What the model can do, where you know it. Unset means try it; making images needs images: true. */\n capabilities?: {\n tools?: boolean;\n vision?: boolean;\n images?: boolean;\n };\n /** (256 to 200000) */\n maxTokens?: number;\n /** How the endpoint takes a forced tool call: named (the function by name), required (any tool, for an endpoint with no named form) or auto (the model decides, for an endpoint that refuses the others). */\n toolChoice?: \"auto\" | \"named\" | \"required\";\n }>;\n /** (at most 20 items) */\n remove?: string[];\n /** Which connection each feature uses. An unset feature follows the one it belongs to (workshop follows chat), and default serves every feature not named. */\n use?: {\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n default?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n chat?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n \"chat.route\"?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n generation?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n \"generation.notes\"?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n presentation?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n vision?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n images?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n shape?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n workshop?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n \"workshop.draft\"?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n canvas?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n \"agent.slatebox\"?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n library?: string | null;\n /** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */\n connectors?: string | null;\n };\n ownProviders?: \"on\" | \"off\";\n }): Promise<({\n features: Array<Record<string, unknown>>;\n /** Every feature and part a choice may name, with the one it follows while unset. */\n surfaces?: Array<Record<string, unknown>>;\n useKeys?: string[];\n ownProviders: boolean;\n keysAvailable?: boolean;\n hosted?: boolean;\n mine?: Record<string, unknown> | null;\n team?: Record<string, unknown> | null;\n server: Record<string, unknown>;\n effective: Record<string, unknown>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
2696
2589
  "tool": {
2697
2590
  "name": "update_ai_settings",
2698
2591
  "title": "Change AI connections and choices",
2699
- "description": "Add, change or remove the AI connections Slatebox drafts with, and choose which connection each feature uses.\n\nSet AI. Adds or changes AI connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins), server this server's (administrators; ownProviders on or off lets people use their own). Mix freely: a choice names me:<name>, team:<name>, server:<name> or builtin. Keys are stored encrypted and never returned, and a run's record keeps its code with the apiKey replaced. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups.",
2592
+ "description": "Add, change or remove the AI connections Slatebox drafts with, and choose which connection each feature uses.\n\nSet AI. Your own or your team's AI on a self-hosted server: adds or changes connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins); level server only turns own AI on or off for everyone (ownProviders, administrators). A choice names me:<name>, team:<name>, or builtin for this server's model (set in Admin → AI control). Keys are stored encrypted and never returned. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI (levels me and team) is for self-hosted Slatebox: Slatebox Cloud refuses it, as AI there comes with Slatebox Pro credits and top-ups.",
2700
2593
  "inputSchema": {
2701
2594
  "type": "object",
2702
2595
  "properties": {
@@ -2723,7 +2616,7 @@
2723
2616
  "type": {
2724
2617
  "type": "string",
2725
2618
  "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
2726
- "description": "The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), openai, anthropic, deepinfra, or one an administrator added (ai.control.get lists them)."
2619
+ "description": "The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added."
2727
2620
  },
2728
2621
  "baseUrl": {
2729
2622
  "type": "string",
@@ -2796,7 +2689,7 @@
2796
2689
  "null"
2797
2690
  ],
2798
2691
  "maxLength": 48,
2799
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2692
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2800
2693
  },
2801
2694
  "chat": {
2802
2695
  "type": [
@@ -2804,7 +2697,7 @@
2804
2697
  "null"
2805
2698
  ],
2806
2699
  "maxLength": 48,
2807
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2700
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2808
2701
  },
2809
2702
  "chat.route": {
2810
2703
  "type": [
@@ -2812,7 +2705,7 @@
2812
2705
  "null"
2813
2706
  ],
2814
2707
  "maxLength": 48,
2815
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2708
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2816
2709
  },
2817
2710
  "generation": {
2818
2711
  "type": [
@@ -2820,7 +2713,7 @@
2820
2713
  "null"
2821
2714
  ],
2822
2715
  "maxLength": 48,
2823
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2716
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2824
2717
  },
2825
2718
  "generation.notes": {
2826
2719
  "type": [
@@ -2828,7 +2721,7 @@
2828
2721
  "null"
2829
2722
  ],
2830
2723
  "maxLength": 48,
2831
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2724
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2832
2725
  },
2833
2726
  "presentation": {
2834
2727
  "type": [
@@ -2836,7 +2729,7 @@
2836
2729
  "null"
2837
2730
  ],
2838
2731
  "maxLength": 48,
2839
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2732
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2840
2733
  },
2841
2734
  "vision": {
2842
2735
  "type": [
@@ -2844,7 +2737,7 @@
2844
2737
  "null"
2845
2738
  ],
2846
2739
  "maxLength": 48,
2847
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2740
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2848
2741
  },
2849
2742
  "images": {
2850
2743
  "type": [
@@ -2852,7 +2745,7 @@
2852
2745
  "null"
2853
2746
  ],
2854
2747
  "maxLength": 48,
2855
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2748
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2856
2749
  },
2857
2750
  "shape": {
2858
2751
  "type": [
@@ -2860,7 +2753,7 @@
2860
2753
  "null"
2861
2754
  ],
2862
2755
  "maxLength": 48,
2863
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2756
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2864
2757
  },
2865
2758
  "workshop": {
2866
2759
  "type": [
@@ -2868,7 +2761,7 @@
2868
2761
  "null"
2869
2762
  ],
2870
2763
  "maxLength": 48,
2871
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2764
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2872
2765
  },
2873
2766
  "workshop.draft": {
2874
2767
  "type": [
@@ -2876,7 +2769,7 @@
2876
2769
  "null"
2877
2770
  ],
2878
2771
  "maxLength": 48,
2879
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2772
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2880
2773
  },
2881
2774
  "canvas": {
2882
2775
  "type": [
@@ -2884,7 +2777,7 @@
2884
2777
  "null"
2885
2778
  ],
2886
2779
  "maxLength": 48,
2887
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2780
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2888
2781
  },
2889
2782
  "agent.slatebox": {
2890
2783
  "type": [
@@ -2892,7 +2785,7 @@
2892
2785
  "null"
2893
2786
  ],
2894
2787
  "maxLength": 48,
2895
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2788
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2896
2789
  },
2897
2790
  "library": {
2898
2791
  "type": [
@@ -2900,7 +2793,7 @@
2900
2793
  "null"
2901
2794
  ],
2902
2795
  "maxLength": 48,
2903
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2796
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2904
2797
  },
2905
2798
  "connectors": {
2906
2799
  "type": [
@@ -2908,7 +2801,7 @@
2908
2801
  "null"
2909
2802
  ],
2910
2803
  "maxLength": 48,
2911
- "description": "me:<name>, team:<name> or server:<name> for a connection, builtin for the AI this server provides, null to clear."
2804
+ "description": "me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear."
2912
2805
  }
2913
2806
  },
2914
2807
  "additionalProperties": false,
@@ -7034,7 +6927,7 @@
7034
6927
  "name": "suggestions.decide",
7035
6928
  "id": "suggestions.decide",
7036
6929
  "title": "Keep/discard/undo",
7037
- "summary": "Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work.",
6930
+ "summary": "Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. An invited agent's action card (a waiting note that stands for a change outside Slatebox, such as a new Linear issue) is approved by keeping that note on its own (itemIds) and declined by discarding it; Keep all never approves one, and held[] says why a card waits.",
7038
6931
  "kind": "write",
7039
6932
  "readOnly": false,
7040
6933
  "destructive": true,
@@ -7060,11 +6953,11 @@
7060
6953
  },
7061
6954
  "index": "suggestions.decide({shareId,decision,actionId,itemIds?}): Keep/discard/undo",
7062
6955
  "types": [],
7063
- "dts": "declare namespace slatebox.suggestions {\n /** Keep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. @scope slates:write @destructive */\n function decide(input: {\n /** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */\n shareId: string;\n decision: \"keep\" | \"discard\" | \"undo\";\n /** The action, as list_suggestions gives it (actions[].actionId). (1–64 characters) */\n actionId: string;\n /** Only these items of the action. (1–200 items) */\n itemIds?: string[];\n }): Promise<({\n ok: boolean;\n shareId: string;\n revision?: number;\n kept?: Array<Record<string, unknown>>;\n discarded?: Array<Record<string, unknown>>;\n refused?: Array<Record<string, unknown>>;\n /** undo: the items undone. */\n undone?: string[];\n /** undo: the items left as they are, each with its reason. */\n left?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
6956
+ "dts": "declare namespace slatebox.suggestions {\n /** Keep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. An invited agent's action card (a waiting note that stands for a change outside Slatebox, such as a new Linear issue) is approved by keeping that note on its own (itemIds) and declined by discarding it; Keep all never approves one, and held[] says why a card waits. @scope slates:write @destructive */\n function decide(input: {\n /** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */\n shareId: string;\n decision: \"keep\" | \"discard\" | \"undo\";\n /** The action, as list_suggestions gives it (actions[].actionId). (1–64 characters) */\n actionId: string;\n /** Only these items of the action. (1–200 items) */\n itemIds?: string[];\n }): Promise<({\n ok: boolean;\n shareId: string;\n revision?: number;\n kept?: Array<Record<string, unknown>>;\n discarded?: Array<Record<string, unknown>>;\n refused?: Array<Record<string, unknown>>;\n /** undo: the items undone. */\n undone?: string[];\n /** undo: the items left as they are, each with its reason. */\n left?: Array<Record<string, unknown>>;\n /** keep: waiting items that stand for a change outside Slatebox (an action card) and were not approved, each with why (approve each card on its own; only its inviter approves unless they let others). discard: cards whose change is being made right now (they cannot be stopped) or was already made. */\n held?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
7064
6957
  "tool": {
7065
6958
  "name": "decide_suggestions",
7066
6959
  "title": "Keep, discard or undo agent work",
7067
- "description": "Keep (save) or discard what an agent suggested on a slate (one action or some of its items), or undo one agent action that was kept or saved directly.\n\nKeep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work.",
6960
+ "description": "Keep (save) or discard what an agent suggested on a slate (one action or some of its items), or undo one agent action that was kept or saved directly.\n\nKeep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. An invited agent's action card (a waiting note that stands for a change outside Slatebox, such as a new Linear issue) is approved by keeping that note on its own (itemIds) and declined by discarding it; Keep all never approves one, and held[] says why a card waits.",
7068
6961
  "inputSchema": {
7069
6962
  "type": "object",
7070
6963
  "properties": {