Skip to content

docs(dataapp-developer): document Kai tool restrictions - #90

Draft
claude[bot] wants to merge 1 commit into
mainfrom
docs/ai-3600-tool-restrictions
Draft

docs(dataapp-developer): document Kai tool restrictions#90
claude[bot] wants to merge 1 commit into
mainfrom
docs/ai-3600-tool-restrictions

Conversation

@claude

@claude claude Bot commented Jul 20, 2026

Copy link
Copy Markdown

Requested by Jordan Burger · Slack thread

What / Before → After

Before: The kai-integration.md reference showed how to embed Kai and stream responses via send_message (Python) or the /api/chat SSE proxy (JS), but there was no way documented to constrain what Kai could actually do inside an embedded chat. App authors had no guidance for building a read-only assistant or scoping it to a narrow set of tools.

After: The reference gains a "Restricting tools" section documenting the new ToolRestrictions model / tool_restrictions param just added to the keboola/kai-client Python SDK. It explains the three optional, independent fields — allowed_tools (allowlist), disallowed_tools (denylist), and read_only_mode — the first-message-wins persistence behavior (the backend keeps restrictions from a chat's first message and ignores them on follow-ups), and shows both a Python example and the equivalent toolRestrictions JSON body for the JS proxy path. The section is also added to the file's Contents list.

How

Docs-only change. Added one focused section to plugins/dataapp-developer/skills/dataapp-development/references/kai-integration.md, mirroring the file's existing heading style, code-fence conventions, and density, and wired it into the top-of-file Contents list. No plugin version bump, since this expands an existing reference rather than adding a new command/agent/skill. No markdown lint / prettier config exists in the repo, so there was no docs check to run.

Pairs with SDK PR keboola/kai-client#46 and backend PR keboola/ui#6267 (already merged). Linear: AI-3600.


Generated by Claude Code

kai-client now exposes a ToolRestrictions model and a tool_restrictions
param on send_message, letting data-app embeds allowlist/denylist tools
or force read-only mode. Document the three fields, the first-message-wins
persistence behavior, and Python + JS-proxy usage in the kai-integration
reference so app authors can scope what Kai may do in an embedded chat.

Refs keboola/kai-client#46, AI-3600.
@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown

AI-3600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant