Home

Call Argument

This is an executable type used in Stencila Schema for arguments passed to a CallBlock.

It extends Parameter with executable code so an argument's value can be computed dynamically rather than supplied only as a static value. This supports parameterized document calls and reusable document components.

Key properties include the argument name, code, value, and programmingLanguage.

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

Properties

The CallArgument type has these properties:

NameDescriptionTypeInherited from
valueThe current value of the argument.Node-
codeThe code to be evaluated for the parameter.Cord-
programmingLanguageThe programming language of the code.String-
nameThe name of the parameter.StringParameter
labelA short label for the parameter.StringParameter
defaultThe default value of the parameter.NodeParameter
validatorThe validator that the value is validated against.ValidatorParameter
derivedFromThe dotted path to the object (e.g. a database table column) that the parameter should be derived fromStringParameter
executionModeUnder which circumstances the node should be executed.ExecutionModeExecutable
compilationDigestA digest of the content, semantics and dependencies of the node.CompilationDigestExecutable
compilationMessagesMessages generated while compiling the code.CompilationMessage*Executable
executionDigestThe compilationDigest of the node when it was last executed.CompilationDigestExecutable
executionDependenciesThe upstream dependencies of this node.ExecutionDependency*Executable
executionDependantsThe downstream dependants of this node.ExecutionDependant*Executable
executionTagsTags in the code which affect its execution.ExecutionTag*Executable
executionCountA count of the number of times that the node has been executed.IntegerExecutable
executionRequiredWhether, and why, the code requires execution or re-execution.ExecutionRequiredExecutable
executionStatusStatus of the most recent, including any current, execution.ExecutionStatusExecutable
executionInstanceThe id of the kernel instance that performed the last execution.StringExecutable
executionEndedThe timestamp when the last execution ended.TimestampExecutable
executionDurationDuration of the last execution.DurationExecutable
executionMessagesMessages emitted while executing the node.ExecutionMessage*Executable
idThe identifier for this item.StringEntity

Related

The CallArgument type is related to these types:

Bindings

The CallArgument type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the CallArgument type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
nameMin+Generate a fixed name.String::from("name")
Low+Generate a random string of up to 10 alphanumeric characters (and at most one underscore to avoida clash with Markdown emphasis).Regex [a-zA-Z_][a-zA-Z0-9]{0,9}
High+Generate a random string of up to 100 characters (excluding control characters).Regex [^\p{C}]{1,100}
MaxGenerate an arbitrary string.String::arbitrary()
codeMin+Generate a simple fixed string of code.Cord::from("code")
Low+Generate a random string of up to 10 alphanumeric characters.r"[a-zA-Z0-9]{1,10}".prop_map(Cord::from)
High+Generate a random string of up to 100 characters (excluding control characters).r"[^\p{C}]{1,100}".prop_map(Cord::from)
MaxGenerate an arbitrary string.String::arbitrary().prop_map(Cord::from)

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

© 2026 Stencila