Internal tools

Internal tools

Internal tools give you a simple and secure user interface to interact with your data out-of-the-box.

⚒️

A tool is an action that can be accessed and run via the Keel Console (opens in a new tab)

📚

Ready to dive in? Start the tutorial

Getting started

Tools are automatically generated from APIs that Keel creates and exposes from your schema. Keel creates a page for each action and handles the hard UI bits for you, such as navigation, forms, data tables and filters. When you update your schema, tools will automatically update as well.

Directory

The default API and each additional one will create their own directory of tools. You can access the directory (or directories) in the Operate section of the Keel Console (opens in a new tab).

Tool

Keel creates a page with a route for each action in the schema. This 'tool' then allows a user to:

  1. Enter any inputs to the action
  2. Run the action
  3. Render the response
  4. Navigate to related actions (with pre-populated inputs)

By defining a collection of actions of all types, you assemble a UI optimised for efficient data manipulation and navigation through a unique flow of actions.

Example of a "List Orders" tool Tools example

You may see a blue information icon along the way. This will appear if you are missing an action that makes links between fields and actions possible.

Tools info icon

Anatomy

Toolbar

Each tool may have additional actions that are automatically linked for you. You will also see more options here, such as an option to favourite the tool so that it stays in the sidebar for easy access. Another option shown is for opening the action in the API explorer, which is another part of the Console that shows you examples of the types of API endpoints you can use in your own apps.

Toolbar example

Input field options

For actions that have inputs, the input field components have been configured to match the input type you have written in your schema.

  • If a field is optional, a null button will be displayed within that input field. This gives you the option to explicitly set that field to null.
  • If an input field has a value but you want to set that field to be undefined, use the clear button to completely unset the field.
  • For boolean fields, a yes/no toggle button will appear. You can set these to null if your model field type is optional, or clear the field and leave it unset if your input field for that action is optional.
  • For repeated fields as inputs, you will have the option to add multiple items entries on the form.
  • For id inputs, you may have a lookup button to help find an id so you don't have to type in the value manually. See here for more details.

Order

Internal tools consider the order of fields and actions in the model and will render them accordingly. Any fields relating to other models (relationships) will always be displayed last.

Permissions

Since internal tools just tap into the APIs, they respect the permission logic from the schema and provide the context of the Identity logged into the Console. This way you have complete control over who has access to which actions.