Hello forumname,
If you need to apply the detect markers operation to chunk.frames[0] you need to do the following:
chunk.detectMarkers(frames = [chunk.frames[0].key])
Check the documentation (API Reference) for the arguments that require the list to input, if the required type is int, then you need to pass list of .key elements for chunks, cameras, frames and etc.