{"command":{"effect":"write","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Create a vector store file by attaching a [File](https://developers.openai.com/api/reference/resources/files) to a [vector store](https://developers.openai.com/api/reference/resources/vector_stores).","properties":{"path":{"type":"object","properties":{"vector_store_id":{"type":"string","examples":["vs_abc123"],"description":"The ID of the vector store for which to create a File.\n"}},"required":["vector_store_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/CreateVectorStoreFileRequest"}},"required":["path","body"],"additionalProperties":false,"definitions":{"CreateVectorStoreFileRequest":{"type":"object","additionalProperties":false,"properties":{"file_id":{"description":"A [File](https://developers.openai.com/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.","type":"string"},"chunking_strategy":{"$ref":"#/definitions/ChunkingStrategyRequestParam"},"attributes":{"$ref":"#/definitions/VectorStoreFileAttributes"}},"required":["file_id"]},"ChunkingStrategyRequestParam":{"type":"object","description":"The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.","oneOf":[{"$ref":"#/definitions/AutoChunkingStrategyRequestParam"},{"$ref":"#/definitions/StaticChunkingStrategyRequestParam"}]},"VectorStoreFileAttributes":{"anyOf":[{"type":"object","description":"Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. Keys are strings\nwith a maximum length of 64 characters. Values are strings with a maximum\nlength of 512 characters, booleans, or numbers.\n","maxProperties":16,"propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"oneOf":[{"type":"string","maxLength":512},{"type":"number"},{"type":"boolean"}]}},{"type":"null"}]},"AutoChunkingStrategyRequestParam":{"type":"object","title":"Auto Chunking Strategy","description":"The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.","additionalProperties":false,"properties":{"type":{"type":"string","description":"Always `auto`.","enum":["auto"]}},"required":["type"]},"StaticChunkingStrategyRequestParam":{"type":"object","title":"Static Chunking Strategy","description":"Customize your own chunking strategy by setting chunk size and chunk overlap.","additionalProperties":false,"properties":{"type":{"type":"string","description":"Always `static`.","enum":["static"]},"static":{"$ref":"#/definitions/StaticChunkingStrategy"}},"required":["type","static"]},"StaticChunkingStrategy":{"type":"object","additionalProperties":false,"properties":{"max_chunk_size_tokens":{"type":"integer","minimum":100,"maximum":4096,"description":"The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`."},"chunk_overlap_tokens":{"type":"integer","description":"The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n"}},"required":["max_chunk_size_tokens","chunk_overlap_tokens"]}}},"name":"Create vector store file","id":"openai.createvectorstorefile","example":{"path":{"vector_store_id":"vs_abc123"},"body":{"file_id":"example"}},"maxRequests":1,"summary":false}}