{"command":{"effect":"read","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Returns a list of messages for a given thread.","properties":{"path":{"type":"object","properties":{"thread_id":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) the messages belong to."}},"required":["thread_id"],"additionalProperties":false},"query":{"type":"object","properties":{"limit":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"},"order":{"type":"string","default":"desc","enum":["asc","desc"],"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"},"after":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"},"before":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"},"run_id":{"type":"string","description":"Filter messages by the run ID that generated them.\n"}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"List messages","id":"openai.listmessages","example":{"path":{"thread_id":"example"}},"maxRequests":1,"summary":false}}