Submit compact STRING API requests for network, interaction partner, and enrichment endpoints. Use when a user wants concise STRING summaries
scripts/rest_request.py for all STRING API calls.base_url=https://string-db.org/api/json.method=POST with form_body for STRING endpoints.caller_identity in form_body; keep it stable within a session when possible.max_items; for network and interaction_partners, start with API limit=10 and max_items=10.enrichment, summarize the top 5 to 10 rows unless the user asks for more.... in tool previews as UI truncation, not literal request content.network, interaction_partners, and enrichment.save_raw=true.base_url, pathmethod, params, headers, json_body, form_body, record_path, response_format, max_items, max_depth, timeout_sec, save_raw, raw_output_path{"base_url":"https://string-db.org/api/json","path":"network","method":"POST","form_body":{"identifiers":"TP53","species":9606,"caller_identity":"chatgpt-skill","limit":10},"max_items":10}{"base_url":"https://string-db.org/api/json","path":"interaction_partners","method":"POST","form_body":{"identifier":"TP53","species":9606,"caller_identity":"chatgpt-skill","limit":10},"max_items":10}ok, source, path, method, status_code, warnings, and either compact records or a compact summary.raw_output_path when save_raw=true.ok=false with error.code and error.message.echo '{"base_url":"https://string-db.org/api/json","path":"network","method":"POST","form_body":{"identifiers":"TP53","species":9606,"caller_identity":"chatgpt-skill","limit":10},"max_items":10}' | python scripts/rest_request.py
scripts/rest_request.py.