1---2name: string-skill3description: Submit compact STRING API requests for network, interaction partner, and enrichment endpoints. Use when a user wants concise STRING summaries4---56## Operating rules7- Use `scripts/rest_request.py` for all STRING API calls.8- Use `base_url=https://string-db.org/api/json`.9- Use `method=POST` with `form_body` for STRING endpoints.10- Include `caller_identity` in `form_body`; keep it stable within a session when possible.11- The script accepts `max_items`; for `network` and `interaction_partners`, start with API `limit=10` and `max_items=10`.12- For `enrichment`, summarize the top `5` to `10` rows unless the user asks for more.13- Re-run requests in long conversations instead of relying on prior tool output.14- Treat displayed `...` in tool previews as UI truncation, not literal request content.1516## Execution behavior17- Return concise markdown summaries from the script JSON by default.18- Return the script JSON verbatim only if the user explicitly asks for machine-readable output.19- Prefer these paths: `network`, `interaction_partners`, and `enrichment`.20- For long identifier lists, keep the request small and paged; if full results are needed, use `save_raw=true`.2122## Input23- Read one JSON object from stdin.24- Required fields: `base_url`, `path`25- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`26- Common STRING patterns:27 - `{"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}`28 - `{"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}`2930## Output31- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records` or a compact `summary`.32- Use `raw_output_path` when `save_raw=true`.33- Failure returns `ok=false` with `error.code` and `error.message`.3435## Execution36```bash37echo '{"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.py38```3940## References41- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.