-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Currently input_schema must be a static array at registration time.
Request: Allow input_schema to be a callable that returns the schema, enabling context-aware parameters.
Use case: Automation pipelines where tool parameters depend on data collected earlier in the workflow. Parameters should exclude fields that already have values from previous steps.
wp_register_ability('myplugin/process-data', [
'input_schema' => function(array $context): array {
return MyPlugin\Schema::generate($context);
},
]);
Metadata
Metadata
Assignees
Labels
No labels