Skip to content

Support Dynamic Input_Schema #158

@chubes4

Description

@chubes4

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions