Home

Function

This is a type used in Stencila Schema for describing callable functions in documents and execution contexts.

It exists to represent function signatures structurally, including parameters and return types, so functions can be documented, exposed to tools, and invoked from executable nodes. This helps bridge document content with computational behavior.

Key properties include the function name, parameters, and return-value description.

This type is marked as experimental and is likely to change.

Analogues

The following external types, elements, or nodes are similar to a Function:

  • OpenAPI operation signature: Approximate analogue for structured callable signatures with parameters and return-like schemas, though Stencila Function is language-agnostic and document-oriented.

Properties

The Function type has these properties:

NameDescriptionTypeInherited from
nameThe name of the function.String-
parametersThe parameters of the function.Parameter*-
returnsThe return type of the function.Validator-
idThe identifier for this item.StringEntity

Related

The Function type is related to these types:

Bindings

The Function type is represented in:


This documentation was generated from Function.yaml by docs_types.rs.

© 2026 Stencila