Is it possible to make an AppIndent DynamicOptionsProvider depend on another parameter in the AppIntent?

The problem I am trying to solve is:

  1. I have a macOS document based app

  2. Each document contains a list of rows

I would like to have an AddRowIntent.

That intent should take a document as a parameter. I would also like an optional "after row" parameter. When specified the new row will be inserted after that existing row.

I want to use DynamicOptionProvider to generate a list of rows in the selected document to choose from, but I'm unsure how to do this. Is it possible? Or what should is the right design in this case, when an Intent has a container and and item in that container as parameters?

I didn't get any feedback on this, I don't think it's possible. I think only option is to allow user to select any row from any document for "after row", then maybe throw a runtime error if the "after row" isn't part of the document that the row is being added to.

Is it possible to make an AppIndent DynamicOptionsProvider depend on another parameter in the AppIntent?
 
 
Q