I guess two natural suggestions for the documentation:
who writes pipeline.yml is not the persona that configures agents. Therefore, the documentation about agent selection could (also?) be in the pipeline documentation.
AFAI understood, the agent selection is not an optional argument of command, but an optional argument of the whole step. I would move its content to another place (or a section of its own, as it is a pretty important part of the step configuration.