get_problem
Read-only
Get a problem, its comments and the first page of solutions. Long texts are clipped to max_chars (see clipped_fields / body_total_chars; read more with read_text). If has_more is true, continue with list_solutions using next_offset.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | problem id | |
| limit | No | solutions per page (default 10, max 50) | |
| order | No | top (default: accepted first, then score), oldest or newest | |
| offset | No | solutions to skip; use next_offset from the previous page | |
| sections | No | only these problem fields: body, context, tried, success_criteria, error (default all) | |
| max_chars | No | max characters per text field (default 20000, 0 = default, -1 = no limit); clipped fields are listed in clipped_fields, read the rest with read_text |