how to pass value to the end of the command

execute if data block ~ ~ ~ Items[0].id run return run function engine:blocks/block/block4/work {id:""}

how do i put Items[0].id into the arguments of the function im calling?

Continue to help post